[Qt-interest] Data Storage for QT Application
John McClurkin
jwm at nei.nih.gov
Tue Feb 9 14:35:37 CET 2010
Srdjan Todorovic wrote:
> 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
You could try calling sync() before changing the value for an existing key.
More information about the Qt-interest-old
mailing list