[Qt-interest] Data Storage for QT Application

Chitrang Srivastava chitrang.srivastava at gmail.com
Tue Feb 9 18:41:50 CET 2010


Hello Friend,

I see their is lot of other options suggested by esteemed members.

Let me put my requirements first.
record means (Country name,capital, )

Add a record.
Delete a record(row), based on Country name(A country name will be given
search the record in table & delete the whole row).
Retrieve all the records(whole table ).

I see that QSettings cant solve this problem fully (retrive row based on a
value wouldn't possible).
I will try XML ; guess needs to create domtree ; query/add /modify and write
back to xml file.
Any other suggestion ?

-chits

On Tue, Feb 9, 2010 at 7:00 PM, Srdjan Todorovic <todorovic.s at googlemail.com
> 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
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100209/bd1ac405/attachment.html 


More information about the Qt-interest-old mailing list