I have a QDataStream:
dataStream << qstring << intvalue << qpixmap
QByteArray itemData;
QDataStream dataStream(&itemData, QIODevice::WriteOnly);
dataStream << qstring << intvalue << qpixmap
To copy to clipboard, switch view to plain text mode
When I want to get the data from the datastream, I don't want all the data at one time, so will this cause the data to come out in the right order?
int number;
dataStream >> string1;
.
.
.
dataStream >> number >> pixmap;
QString string1;
int number;
QPixmap pixmap;
dataStream >> string1;
.
.
.
dataStream >> number >> pixmap;
To copy to clipboard, switch view to plain text mode
Bookmarks