Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-36229

QTcpSocket::readData() has different behaviour on Qt 5.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • Some future release
    • 5.2.0
    • Network: Sockets
    • None
    • Windows 7 64 bits / Qt Creator.

    Description

      When I override the function on Qt 5.2.0. It has different behaviour than Qt 4.8.4.

      I've attached the project. The output of each version is below:

      Qt 4.8.4 (Visual 2010)
      Starting C:\Products\build-test_readData-Qt_4_8_4-Debug\debug\test_readData.exe...
      readData 16384 1087
      readData 3009 0
      C:\Products\build-test_readData-Qt_4_8_4-Debug\debug\test_readData.exe exited with code 0

      Qt 5.2.0 (Visual 2010)
      Starting C:\Products\build-test_readData-Desktop_Qt_5_2_0_MSVC2010_32bit_OpenGL-Debug\debug\test_readData.exe...
      readData 3009 0
      readData 0 0
      C:\Products\build-test_readData-Desktop_Qt_5_2_0_MSVC2010_32bit_OpenGL-Debug\debug\test_readData.exe exited with code 0

      The readData seems not always called on Qt 5.2.0.

      Attachments

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

        Activity

          People

            peter-har Peter Hartmann
            toteme Alexis Leseigneur
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes