[Qt-interest] [QtS60-feedback] how to achive the serialization in Qt

Ramesh ramesh.bs at robosoftin.com
Wed Apr 14 06:56:36 CEST 2010


Ya,
I got it. We need to overload the operator..
Thanks..

-----Original Message-----
From: liang.qi at nokia.com [mailto:liang.qi at nokia.com] 
Sent: Tuesday, April 13, 2010 6:44 PM
To: ramesh.bs at robosoftin.com; qt-interest at trolltech.com; QtS60-feedback at trolltech.com
Subject: RE: [QtS60-feedback] how to achive the serialization in Qt

Hi, Ramesh,

Maybe you could have a look at the doc and code for:
QDataStream &	operator<< ( QDataStream & s, const QFont & font )
QDataStream &	operator>> ( QDataStream & s, QFont & font )

http://doc.qt.nokia.com/4.7-snapshot/qfont.html
http://qt.gitorious.org/qt/qt/blobs/4.7/src/gui/text/qfont.cpp

Regards,
Liang

From: qts60-feedback-bounces at trolltech.com [mailto:qts60-feedback-bounces at trolltech.com] On Behalf Of ext Ramesh
Sent: Tuesday, April 13, 2010 3:07 PM
To: qt-interest at trolltech.com; QtS60-feedback at trolltech.com
Subject: [QtS60-feedback] how to achive the serialization in Qt

Hi,

Folks, can you help me in how to achieve the serialization in Qt,

I have some idea about QDataStream with this we can achieve the data stream,
In the documentation it is mentioned that we can write char, int, etc the other  Data types, if I try to write the object it is throwing error ☹

How to write the object to file using QDataStream?

-----------------------------------------------
Robosoft Technologies - Come home to Technology
Disclaimer: This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. Emails to and from our network may be logged and monitored. This email and its attachments are scanned for virus by our scanners and are believed to be safe. However, no warranty is given that this email is free of malicious content or virus.


-----------------------------------------------
Robosoft Technologies - Come home to Technology

Disclaimer: This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. Emails to and from our network may be logged and monitored. This email and its attachments are scanned for virus by our scanners and are believed to be safe. However, no warranty is given that this email is free of malicious content or virus.




More information about the Qt-interest-old mailing list