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. Any setup needed to use QDBusServer under Windows?
Forum Updated to NodeBB v4.3 + New Features

Any setup needed to use QDBusServer under Windows?

Scheduled Pinned Locked Moved General and Desktop
qtdbuswindowsqt5.4
6 Posts 4 Posters 2.5k Views 3 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.
  • F Offline
    F Offline
    francois
    wrote on 17 Mar 2015, 14:37 last edited by
    #1

    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

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Rondog
      wrote on 17 Mar 2015, 15:39 last edited by
      #2

      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.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on 17 Mar 2015, 15:49 last edited by
        #3

        Dbus is becoming even 'more Linux only' as it is being merged into the Kernel (maybe in Linux 4.2).

        1 Reply Last reply
        0
        • F Offline
          F Offline
          francois
          wrote on 17 Mar 2015, 16:19 last edited by
          #4

          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.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 17 Mar 2015, 21:49 last edited by
            #5

            Hi,

            And the windows port is part of dbus

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            F 1 Reply Last reply 18 Mar 2015, 09:50
            0
            • S SGaist
              17 Mar 2015, 21:49

              Hi,

              And the windows port is part of dbus

              F Offline
              F Offline
              francois
              wrote on 18 Mar 2015, 09:50 last edited by francois
              #6

              @SGaist Yes, I successfully compiled dbus on Windows. That is why I don't understand why I can't get it to work on Windows. There is no error messages nor crash. It just do nothing!

              1 Reply Last reply
              0

              4/6

              17 Mar 2015, 16:19

              • Login

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