If you want to use the asynchronous QTcpSocket interface, get rid of that while loop and msleep() and invoke QThread::exec() to start the event loop. Otherwise you have to invoke waitForReadyRead() to allow the socket to receive data.
If you want to use the asynchronous QTcpSocket interface, get rid of that while loop and msleep() and invoke QThread::exec() to start the event loop. Otherwise you have to invoke waitForReadyRead() to allow the socket to receive data.
jimroos (5th July 2007)
Bookmarks