QDataStream & QDataStream::operator>> ( char *& s )This is an overloaded function.Reads the '\0'-terminated string s from the stream and returns a reference to the stream.Space for the string is allocated using new -- the caller must destroy it with delete[].
QBuffer buffer; buffer.open(QBuffer::ReadWrite); QDataStream out(&buffer); int i = 44; out << i; out >> DynamicData; qDebug()<<"BinaryData = "<<DynamicData;
char* massive ; QDataStream in(pFile); massive = new char[length]; in.setVersion(QDataStream::Qt_4_7); while(in.atEnd()) { in.readBytes(massive+i, len); i++; }