
Originally Posted by
TheKedge
a) overload the QDataStream
Just create a new handler :
QDataStream& operator << (QDataStream& out, MyStruct *s)
{
// serialization code goes here
}
QDataStream& operator >> (QDataStream& in, MyStruct *s)
{
// deserialization code goes here
}
QDataStream& operator << (QDataStream& out, MyStruct *s)
{
// serialization code goes here
}
QDataStream& operator >> (QDataStream& in, MyStruct *s)
{
// deserialization code goes here
}
To copy to clipboard, switch view to plain text mode
Bookmarks