|
|
|
|
|
|
*dataStream >> *this
rather than *dataStream >> this
. In other words, you want to populate the object, not the pointer.this
is type MyType*
then you need to write operator >> (QdataStream &stream, MyType &object)
. Note that the first object is a reference, not a pointer. The operator should return Qdatastream &
. That way you can do
|
|