Re: [Interest] Serializing QSensorReading derived classes

2018-02-21 Thread Jérôme Godbout
>>() with that given object. Not sure you need a factory with QMetaType if done properly. From: Jason H Sent: Wednesday, February 21, 2018 10:08:50 AM To: Jérôme Godbout Cc: interestqt-project.org Subject: Re: [Interest] Serializing QSensorReading derived classes

Re: [Interest] Serializing QSensorReading derived classes

2018-02-21 Thread Jason H
to extend the support to the QAcceleromterReading and QAltimeterReading to do you own data reading and call the constructor with the proper deserialized data.   From: Interest on behalf of Jason H Sent: Wednesday, February 21, 2018 1:05:35 AM To: interestqt-project.org Subject: [Interest] Seriali

Re: [Interest] Serializing QSensorReading derived classes

2018-02-21 Thread Jérôme Godbout
gt;> x >> y >> z; var.setAccelerationMode(mode); var.reading().setX(x); var.reading().setY(y); var.reading().setZ(z); From: Interest on behalf of Jason H Sent: Wednesday, February 21, 2018 1:05:35 AM To: interestqt-project.org Subject: [Inte

Re: [Interest] Serializing QSensorReading derived classes

2018-02-21 Thread Jérôme Godbout
ding and QAltimeterReading to do you own data reading and call the constructor with the proper deserialized data. From: Interest on behalf of Jason H Sent: Wednesday, February 21, 2018 1:05:35 AM To: interestqt-project.org Subject: [Interest] Serializing QSensorReading derived

[Interest] Serializing QSensorReading derived classes

2018-02-20 Thread Jason H
I'd like to serialize these values. QAcceleromterReading has x,y,z properties, but to serialize this one, the accelerometer mode should also be included. But aside from that, I'm not clear on what I need to do. There's adding the QDataStream << >> (QDataScream stream, QSensorReading reading) ope