QDBus on windows doesn't work
-
Can someone who has used QtDbus on windows help me? When I run the example of QDBus, it doesn't work,and the error is:"Cannot connect to the D-Bus session bus"! I compiled the QtDBus with Qt Creator ,and the Compiler is MinGW. I didn't modify the file "system.conf" and "session.conf" of D-Bus,also didn't modify the dbus.pro of QtDBus.What should I do? The version of D-Bus used is 1.4.16,the version of Qt is 5.1.0.
-
Hi,
reading "here":http://qt-project.org/doc/qt-5.1/qtdoc/qtmodules.html you can see that QtD-Bus is a UNIX Only module
-
Thanks,I have resolved the problem,it can work on windows!
-
[quote author="wangxy" date="1378686956"]Thanks,I have resolved the problem,it can work on windows![/quote]
Can you describe the resolution for those interested?
-
After compiled the QDBus module, I modified the name of dll, just changed libdbus-1.dll of D-Bus to dbus-1.dll, then it can run example correctly!
-
Awesome, thanks!