Quote Originally Posted by wysota View Post
Using QDataStream instead of any other serialization form doesn't help in any way to handle drag&drop
Yes I'm sorry. I meant I want to be able to use these classes with qRegisterMetaTypeStreamOperators(), I use it for drag/drop.

Quote Originally Posted by wysota View Post
If you want to use QDataStream in this specific case then your base-class has to know all its potential subclasses
My project is not that huge, it's a matter of a dozen classes for now.
I was just wondering if there existed elegant C++/Qt solution with QDataStream serialization and inheritance.

Thank you all for your answers