Without any specific information or code we can only try to guess what is wrong. Besides there is no such thing as "qsocket.read()".
My guess is that you assume that sending a block of n bytes over TCP will result in a single reception of a block of n bytes on the other side. This is not how TCP works.
Bookmarks