我想在QtDbus上注册一个接口和方法。
在glib-Dbus中,我们有一个方法g_Dbus_register_interface(..,..,..)
有没有一种方法可以让我使用QtDbus做同样的事情?
是的,您必须使用QDBusConnectionInterface::registerService和QDBusConnectionInterface::registerObject。请按照本手册获取完整指南:http://techbase.kde.org/Development/Tutorials/D-Bus/Creating_Interfaces.