Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
dbus-sendutility的参数和构造函数的参数和call*方法的对应关系是QDBusAbstractInterface什么?
dbus-send
call*
QDBusAbstractInterface
互联网上有很多关于如何使用实用程序通过DBus规则NetworkManager的示例(例如[1] ) ,但我无法推断如何将它们转换为Qt C++代码。dbus-send
这个问题听起来有点过于笼统,以至于任何答案都对您非常有用,但是...
dbus-send --dest=com.example.service \ /service/path \ com.example.interfacename.Method \ int32:123
应该匹配
QDBusInterface iface("com.example.Service", "/service/path", "com.example.interfacename"); iface.call("Method", 123);