Quote Originally Posted by freak
tcpSock = new QTcpSocket;
connect(tcpSock, SIGNAL(readyRead()), this, SLOT(readMessage()));
...
tcpSock = tcpServ->nextPendingConnection();
...
I can't seem to read the messages sent from my client app.
First you create a socket and connect to its signal, then you get another socket from QTcpServer. It won't work, because that new socket isn't connected to any of your slots.

What's the best way of doing this?
See the examples that come with Qt.