[Qt-interest] Data Storage for QT Application

Ross Driedger ross at earz.ca
Tue Feb 9 19:55:40 CET 2010


On 9-Feb-10, at 1:37 PM, qt-interest-request at trolltech.com wrote:

> Message: 5
> Date: Tue, 9 Feb 2010 23:11:50 +0530
> From: Chitrang Srivastava <chitrang.srivastava at gmail.com>
> Subject: Re: [Qt-interest] Data Storage for QT Application
> To: Srdjan Todorovic <todorovic.s at googlemail.com>
> Cc: qt-interest at trolltech.com
> Message-ID:
> 	<75ad89fd1002090941j645ef3abrdc6e8c99cce591ce at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I see their is lot of other options suggested by esteemed members.

A good framework offers a number of different solutions to a problem.

>
> 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 ).

This is beginning to sound more and more like a database kind of  
problem.  That said, I would implement it first as XML and then,  
perhaps, re-implement as sqlite.  But I;ve done a lot of work in XML  
in Qt and other contexts.

> 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 good way you implement this looks like a good learning experience  
for you.

Ross Driedger
ross_at_earz.ca




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100209/99ad30f4/attachment.html 


More information about the Qt-interest-old mailing list