QtDbus is not working in Qt5.4.1 on Windows 7

血红的双手。 提交于 2019-12-04 18:21:23

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)

Thankyou, you gave me the clues i needed to get started. However, in order to move with the times and keep this topic up to date...

I am using Qt 5.7.0 and no matter what I tried I could not get dbus v1.4.2 or 1.4.6 from your link to work with Qt.

It seems for Qt 5.7.0 a newer version of DBus is needed (I don't know the technical detail of why this is the case)... luckily I have stumbled across 1.8.10 prebuilt:

http://lists.qt-project.org/pipermail/development/2014-December/019502.html

All credit should go to the original compiler of this package, not to me, but if the link goes down, I will do my best to rehost and update, just drop me a comment.

All QDBus examples from Qt5.7.0 work out of the box with this version.

For anyone who is inclined to start fiddling with bus addresses, environment variables, config files, etc... try this later build FIRST!

Obviously, this version is just a zip, not an installer - so you need to add the "bin" folder to your $PATH.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!