You can overload the operators << and >> for your classes. They are already provided for native types and many Qt types such as QString, QPoint, QList.
You can overload the operators << and >> for your classes. They are already provided for native types and many Qt types such as QString, QPoint, QList.
Check also this
http://code.google.com/p/qboard/wiki/S11nQt
What does it have that QDataStream doesn't do? I really can't see the difference.
ricardo (28th June 2009)
I'm not sure how a serialized signal would look like
By the way, the explanation about QDataStream on S11nQt website is really lame. s11n is as proprietary as QDataStreamAnd (de)serializing Qt objects in a non-Qt environment wouldn't make sense so you are limited to the Qt environment anyway and QDataStream is available there.
ricardo (28th June 2009)
What about serializing without a QT enviroment?
BTW, thanks for replies.
ricardo (28th June 2009)
ricardo (28th June 2009)
Have a look at the boost serialization library
Regards,
Rainer
ricardo (29th June 2009)
Bookmarks