Uploaded image for project: 'Qt Solutions'
  1. Qt Solutions
  2. QTSOLBUG-180

QtService currently not working with sockets due to API changes in Qt5. I also appended the fix!

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • No Version
    • Next Major Release, Next Patch Release
    • Service
    • Unix only
    • 25e2cbba97ad53036aafa4a2b8cb5ad420d8fe05 (qt-solutions/master, 10.12.2015)

      The method in

      void QtServiceSysPrivate::incomingConnection(int socketDescriptor);

      is an reimplemented method from QTcpServer. But in Qt5 the actual signature changed to

      void QTcpServer::incomingConnection(qintptr socketDescriptor);

      This is incompatible for the compiler and so the reimplemented version is never called! The
      communication between instances over sendCMD() does not work.

      Can you fix this please to use qintptr instead of int? I tried it. After that everything works like under Qt4. Maybe you need a pre-processor switch for Qt4 and Qt5 argument types.

      Thanks
      Andreas

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            pietz Andreas Pietzowski
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes