Yeah, I read up on signals - my suggestion was useless because you use a direct connection and all signals emitted on such connections are executed without any delay. In addition, QByteArray is implicitly shared...

I do not see anything obvious to suggest. May be only trying this code:

Qt Code:
  1. QDataStream *streamOut = new QDataStream(socket->readAll());
To copy to clipboard, switch view to plain text mode 

But it'll probably change nothing.