[Qt-interest] Data Storage for QT Application

Srdjan Todorovic todorovic.s at googlemail.com
Tue Feb 9 14:30:35 CET 2010


On 09/02/2010, Sean Harmer <sean.harmer at maps-technology.com> wrote:
> On Tuesday 09 February 2010 13:05:23 Srdjan Todorovic wrote:
>> How about:
>>   setValue("Country_01/Name","France");
>>   setValue("Country_01/Capital","Paris");
>>   setValue("Country_02/Name","Japan")
>>   setValue("Country_02/Capital","Tokyo")
>>
>> And you could even have a count saved:
>>   setValue("NumberOfEntries","2");   or similar.
>>
>> You can do this in a loop. Does that help?
>
> Or you could even use the begin{Read|Write}Array()/endArray() functions of
> QSettings and let that do it for you.

Thanks for that tip. Sadly that's not implemented in my QSettings.
Hopefully it is for the OP.

Srdjan



More information about the Qt-interest-old mailing list