qtdbusqt5.4qtdbusqdbus

QtDbus is not working in Qt5.4.1 on Windows 7


When I run the Qt Creator dbus examples, they couldn't run, is there any settings or stuff for working QtDbus module or any prerequistics?

for example in chat project:

if (!QDBusConnection::sessionBus().isConnected()) {
    qWarning("Cannot connect to the D-Bus session bus.\n"
             "Please check your system settings and try again.\n");
    return 1;
}

returns 1 and program terminated.


Solution

  • Finally I found the solution:

    For QtDbus module get working, The 3rd party Dbus module must be installed in Windows:

    Dbus Windows Installer Download

    After downloading and installing Dbus, it gets working without any configuration. (for working QtDbus, dbus-daemon.exe must be running)