Are you creating the socket in constructor or something? You must create the QTcpSocket object in QThread::run() when the new thread is actually running.
Qt Code:
void MyThread::run() { QTcpSocket socket; .... }To copy to clipboard, switch view to plain text mode
Bookmarks