Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.2.1
-
None
-
Qt5.2.1, Windows 7 64bit, Qt 5.2.1 for Windows 32-bit (MinGW 4.8, OpenGL, 634 MB)
Description
Now, in Qt5.2.1 QTBUG-33987 seems to be fixed, I have no longer the problem that waitForReadyRead returns true although the following readAll() returns an empty QByteArray.
Unfortunately, the method waitForBytesWritten seems to be broken now. Sometimes, not always, the function timeouts and therefore returns false. At the moment I have two solutions:
- Don't call waitForBytesWritten. I've a handshake based communication, so every write causes a response, that I check by calling waitForReadyRead. Instead of
write -> waitForBytesWritten -> waitForReadyRead -> readAll
I just use it this way now:
write -> waitForReadyRead -> readAll - Return to Qt5.2.0