QSettings : custom ini file
-
Hello,
I'm on Windows XP.
I'm using Qsettings in order to save properties. Those properties has different types (int, QSTring, bool...). When I use a classical QSettings that is basically stored on windows registered, no problem. But when i try to use an INI file, the types of settings ar lost (that's any ascii file so only char).
I would like to know if it's possible to custom this file in order to give the type of each dtata stored in it.Thanks
-
That's an intersting idea. I already use the arborescence but it could be usefull.
Anyway, after 4 hours looking for a solution about the ini file, if anyone gets the same idea I got, it doesn't seam possible to modify its protocol to put the type into it.I'll check on give this informations by the groups or write my own writing function.
-
You should use class named "QVariant":http://doc.trolltech.com/4.7/qvariant.html
For example:
@QVariant("DEAD").convert(QVariant::Int);@