try to use another function to read data
as:
QByteArray QIODevice::readAll ()
qint64 QIODevice::readLine ( char * data, qint64 maxSize )

etc.
I think that the problem is QDataStream or QByteArray usage.