Any setup needed to use QDBusServer under Windows?
-
Hello,
I was trying to use QDBusServer under Windows With Qt 5.4. From what I understood QDBusServer can be used to communicate between processes on a computer without having to launch a dbus daemon.
The simple code is working on Linux but not on Windows, can someone help me to know why?
int main(int argc, char** argv) { QApplication app(argc, argv); QDBusServer server; qDebug() << server.isConnected() << server.address(); return app.exec(); }
Thanks
-
DBus is not available on Windows. Same idea that COM is not available in *nix.
There are windows ports of DBus (dbus4win or windbus) but even if you have this there is a very good chance QDBus won't build unless it checks to see if the option exists independent of the platform (as opposed to checking for Q_OS_WIN). I don't know about this part but suspect it doesn't check at all.
-
Dbus is becoming even 'more Linux only' as it is being merged into the Kernel (maybe in Linux 4.2).
-
With Qt 5.4 QtDBus is built by default and seems to be supported on all platforms: http://doc.qt.io/qt-5/qtmodules.html#qt-add-ons.