Maybe I'm confusing QVariant with a meta-type of some sort. It seems to behave like one.
So, for example, when reading a binary file of various custom types, how would one inspect what the record actually is? Qt's serialization would have to support this. Something has to handle the data as a generically sized "block" for the streaming to work. Otherwise, wouldn't know how to iterate through the binary file.
BTW, I realize that QVariant (on its own) can't recreate every possible structure in the world, but through template-programming was thinking it should be able reconstruct any type (from the type identifier in the header). It (or at least the meta-type system) already has type knowledge through the registration mechanism. And, it (stream class) could skip/report unkown types (again by inspecting header information).
The documentation (that I've come across) is limited on serialization. Do you have anything you'd recommend? Seems like it would be a great tutorial (maybe it is).
BTW, thanks for your help ... appreciate it.
Bookmarks