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. Problem with QTcpServer in QT 5.0.1
Qt 6.11 is out! See what's new in the release blog

Problem with QTcpServer in QT 5.0.1

Scheduled Pinned Locked Moved General and Desktop
15 Posts 8 Posters 9.7k 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.
  • L Offline
    L Offline
    landing kiss
    wrote on last edited by
    #4

    hi your code works on qt 5.0.0

    kobena

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jonygon
      wrote on last edited by
      #5

      Apparently I'm having exactly the same problem. I've been working with a code similar to the one posted here for a while now and it's working correctly in Qt 4.8*
      Actually it's even working on QT 5.0.0 on Windows.

      But I just did a fresh install of Fedora Linux 18 64bits, and downloaded the newest QT SDK 5.0.1 and it's not getting to "incomingConnection".

      1 Reply Last reply
      0
      • E Offline
        E Offline
        ErwindeBeus
        wrote on last edited by
        #6

        Changing the 'int' to 'qintptr' fixes the problem for qt 5.0.1. Unfortunately that is change in the api from previous Qt versions, where it was definitely an 'int', thus breaking existing code.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jonygon
          wrote on last edited by
          #7

          I have verified that the problem gets solved changing the function signature.
          Thanks for the help.

          1 Reply Last reply
          0
          • - Offline
            - Offline
            -MK-
            wrote on last edited by
            #8

            Can someone update the docs regarding the same as I spent almost 3 hrs trying to fix this. Btw changing datatype fixed the problem.

            Environment: Qt 5.4 MSVC x64

            1 Reply Last reply
            0
            • - Offline
              - Offline
              -MK-
              wrote on last edited by
              #9

              Can someone update the docs regarding the same as I spent almost 3 hrs trying to fix this. Btw changing datatype fixed the problem.

              Environment: Qt 5.4 MSVC x64

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #10

                Hi,

                Which documentation are you referring to ?

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

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #11

                  Hi,

                  Which documentation are you referring to ?

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

                  1 Reply Last reply
                  0
                  • - Offline
                    - Offline
                    -MK-
                    wrote on last edited by
                    #12

                    http://doc-snapshot.qt-project.org/qt5-5.4/qtcpserver.html#incomingConnection

                    This one. I browsed through the doc but somehow missed the signature as nothing was mentioned regarding the change. I've seen couple of other methods where a note was present saying this particular field has been changed from 4 to 5

                    1 Reply Last reply
                    0
                    • - Offline
                      - Offline
                      -MK-
                      wrote on last edited by
                      #13

                      http://doc-snapshot.qt-project.org/qt5-5.4/qtcpserver.html#incomingConnection

                      This one. I browsed through the doc but somehow missed the signature as nothing was mentioned regarding the change. I've seen couple of other methods where a note was present saying this particular field has been changed from 4 to 5

                      1 Reply Last reply
                      0
                      • JKSHJ Offline
                        JKSHJ Offline
                        JKSH
                        Moderators
                        wrote on last edited by
                        #14

                        This change is described in the "C++ API Changes":http://doc.qt.io/qt-5/sourcebreaks.html#changes-to-qt-network page, but I agree that it would be helpful to add a note in the method documentation too.

                        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                        1 Reply Last reply
                        0
                        • JKSHJ Offline
                          JKSHJ Offline
                          JKSH
                          Moderators
                          wrote on last edited by
                          #15

                          This change is described in the "C++ API Changes":http://doc.qt.io/qt-5/sourcebreaks.html#changes-to-qt-network page, but I agree that it would be helpful to add a note in the method documentation too.

                          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                          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