[Qt-interest] QTcpSocket::waitForReadyRead() "loses" data in a QThread with an event loop

FD dof at projektfabrik.com
Sun Sep 5 19:20:32 CEST 2010


Hi,

> Please post a small, compileable, self-contained example of the problem.

ok, will try doing that. Probably not that easy though, so will take a bit.


> Also check in which thread the QTcpSocket class was created. My first guess
> is that it's the wrong thread.

This should be correct I think. I first created the socket in the ctor of the 
thread, which of course was wrong and so I had to use moveToThread(). 
Instantiated it then in QThread::run()...


Thanks a lot and greetings...



More information about the Qt-interest-old mailing list