我想在QtDbus上注册一个接口和方法。
在glib Dbus中,我们有一个方法g_dbus_register_interface(..,..,..,..)。
有没有办法可以用QtDbus做同样的事情?
发布于 2012-01-30 15:05:45
可以,您必须使用QDBusConnectionInterface::registerService和QDBusConnectionInterface::registerObject。请按照以下手册获取完整的指南:http://techbase.kde.org/Development/Tutorials/D-Bus/Creating_Interfaces。
https://stackoverflow.com/questions/9059570
复制相似问题