PDA

View Full Version : QDataStream and qDebug()



babu198649
19th December 2007, 11:39
hi
i have a code like this .


QDataStream in(socket);
qDebug()<<in;


i need to output the contents in the QDataStream ,how to achieve this

bye;)

marcel
19th December 2007, 11:43
char* s = NULL;
uint length = 0;
in.read(s, length);
if(length >0)
{
qDebug("%s", s);
delete[] s;
}