So, does Qt not support serialization of custom types?
As long as the type is registered (using the macros, template functions, and stream operators), I would think that it would be able to properly serialize any object. Other serialization libraries do this. They output "header" information for each type ... just like is done with a QString where it writes QVariant::String, string length, then the string character data.
The key is to make sure that the Variant::Type maps appropriately ... from when written to when read back. If the type isn't found, the header information should contain the size, so that it could be skipped ... incrementing the stream to the next record.
Are you sure there is no serialization support? I'm very surprised. In fact it's a bit of a show-stopper!
Bookmarks