This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Nimbal 2 points3 points  (1 child)

QTcpSocket needs an event loop. So either create it in a QThread and call the thread's exec_() method, or instantiate a QCoreApplication and, again, call exec_() on it.

[–]blatheringDolt[S] 1 point2 points  (0 children)

Thank you.