I can connect to the server.But i can't read any string.I am using the fortuneclient example.But in the readFortune() function i use this command despite of the QDataStream in(tcpSocket); [code] QString text; text=tcpSocket.readLine(); [/code]