I have a structure with a lot of dynamic (QVectors) and static fields and I need to serialize it. I’m willing to use this: http://www.developer.nokia.com/Community/Wiki/Qt_Object_Serialization
but there’s a field in this structure that I need but I don’t want it to be serialized, any suggestion how to avoid it?
To implement serialization, you’ll be defining the
<<and>>operators for QDataStream + your data structure. So just don’t write the field you don’t want serialized!Edit: What you have to do to get a custom class to serialize: