[Qt-interest] Storing Qt properties to file

Thiago Macieira thiago at kde.org
Mon Sep 26 12:56:35 CEST 2011


On Monday, 26 de September de 2011 11:23:28 Schimkowitsch Robert wrote:
> Hi,
> 
> I want to be able to write the properties of my object to file in a
> locale-independent way, and be able to restore the object using that
> stored information later on.
> 
> Before I start reinventing the wheel, I'd like to know whether something
> like this already exists (I couldn't find it, but then again Qt has
> grown big).
> 
> My plan includes the following steps. If you happen to know existing
> classes or samples that cover those steps, please let me know!
> 
> 1) Read and write QVariant: Handling of basic data types (float is a bit
> tricky, unicode strings might be)

You can just use QDataStream.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110926/14ed90dc/attachment.bin 


More information about the Qt-interest-old mailing list