I told you to pay attention to the detailed description.. 
Each item written to the stream is written in a predefined binary format that varies depending on the item's type. Supported Qt types include QBrush, QColor, QDateTime, QFont, QPixmap, QString, QVariant and many others. For the complete list of all Qt types supporting data streaming see the
Format of the QDataStream operators.
You can write QDataStream operators for your class:
QDataStream& operator << (QDataStream& stream, const SomeClass& some)
{
stream << ...
return stream;
}
QDataStream& operator >> (QDataStream& stream, SomeClass& some)
{
...
stream >> ..
return stream;
}
QDataStream& operator << (QDataStream& stream, const SomeClass& some)
{
stream << ...
return stream;
}
QDataStream& operator >> (QDataStream& stream, SomeClass& some)
{
...
stream >> ..
return stream;
}
To copy to clipboard, switch view to plain text mode
Bookmarks