[Interest] QDataStream & pointers

Reinhardt Behm rbehm at hushmail.com
Sun Sep 13 13:39:27 CEST 2015

On Sunday 13 September 2015 14:31:07 Igor Mironchik wrote:
> Hi,
> How to serialize/deserialize pointers to/from QDataStream correctly?
Just don't do it.

The main reason to serialize data is to store it in some file and later 
retrieve it, possibly with another program.
Even when retrieving a pointer with the same program running as a new instance 
the value (address) of a pointer has no meaning, since that address will not 
be pointing to valid memory. 

Best Regards

Reinhardt Behm

More information about the Interest mailing list