Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QDBus on windows doesn't work
Forum Updated to NodeBB v4.3 + New Features

QDBus on windows doesn't work

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 4.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wangxy
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcosta
      wrote on last edited by
      #2

      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

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      1 Reply Last reply
      0
      • W Offline
        W Offline
        wangxy
        wrote on last edited by
        #3

        Thanks,I have resolved the problem,it can work on windows!

        1 Reply Last reply
        0
        • T Offline
          T Offline
          texrat
          wrote on last edited by
          #4

          [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?

          Maker, writer, designer. Nokia Developer Ambassador. QML lover.

          1 Reply Last reply
          0
          • W Offline
            W Offline
            wangxy
            wrote on last edited by
            #5

            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!

            1 Reply Last reply
            0
            • T Offline
              T Offline
              texrat
              wrote on last edited by
              #6

              Awesome, thanks!

              Maker, writer, designer. Nokia Developer Ambassador. QML lover.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved