[Qt-interest] QTcpSocket::waitForReadyRead() "loses" data in a QThread with an event loop
Thiago Macieira
thiago at kde.org
Sun Sep 5 19:02:31 CEST 2010
On Sunday 5. September 2010 17.27.05 FD wrote:
> I know that many say doing the network stuff in a thread isn't necessary,
> but the overall code would be less complicated if it could be done in
> separate threads using asynchronous signal/slots.
>
> Thanks for bearing with me and for any help. ;-)
Please post a small, compileable, self-contained example of the problem.
Also check in which thread the QTcpSocket class was created. My first guess is
that it's the wrong thread.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100905/423f7c34/attachment.bin
More information about the Qt-interest-old
mailing list