PDA

View Full Version : qt and serialize



giugio
22nd January 2013, 16:03
hello.
I wish use the serializing framework of qt.
I have two question:
1)how i can serialize and deserialize pointers
2)is possible to serialize a custom class?what function i must implement for serialize it's base data classes?

thanks.

wysota
22nd January 2013, 16:56
1)how i can serialize and deserialize pointers
It doesn't make any sense to serialize pointers. You need to serialize objects behind the pointers.


2)is possible to serialize a custom class?
Yes. Reimplement redirection operators as described in QDataStream docs.


what function i must implement for serialize it's base data classes?

I have no idea what you mean by "base data classes".