[Qt-interest] QSql doubts

Malyushytsky, Alex alex at wai.com
Mon Jul 20 23:12:42 CEST 2009


>> Will it increase the Application Size ?,where the saved datas are stored..

http://doc.trolltech.com/4.5/qsettings.html#details

Regards,
        Alex

From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Yuvaraj R
Sent: Sunday, July 19, 2009 9:33 PM
To: bill.king at nokia.com
Cc: qt-interest
Subject: Re: [Qt-interest] QSql doubts

Thanks  Bill

 QSettings is working fine in my application according to my senario..

And i have one more doubt  ,Will it increase the Application Size ?,where the saved datas are stored..

Then i tried with  local file,i created one  text file and  tried to save the contents there.. But application is crashing ,ok i will solve that problem..

My only thing whatever i saved ,that datas will be displaying ,once i login in my application.


Thanks

Yuvaraj R


On Mon, Jul 20, 2009 at 9:51 AM, Bill King <bill.king at nokia.com<mailto:bill.king at nokia.com>> wrote:
Theoretically it should be faster than QSettings. Usually it is,
especially if you index the right fields. Generally, when trying
something like this I write a bunch of unit tests, or a test
application, and run a comparison run between the two, get timings, etc.

ext Yuvaraj R wrote:
> Thanks for your reply..
>
> I want  to save Call and Im history.
>
> Instead of Database, right now i am using Qsettings.is it better
> compared with QSql ?
>
> you have said  that give file location to store the History.. I am
> going to use like..
>
> please clarify above doubts.
>
> Thanks
>
> Yuvaraj R
>
> On Mon, Jul 20, 2009 at 4:29 AM, Bill King <bill.king at nokia.com<mailto:bill.king at nokia.com>
> <mailto:bill.king at nokia.com<mailto:bill.king at nokia.com>>> wrote:
>
>     ext Yuvaraj R wrote:
>     > once i close my application..
>     >
>     > Again i login in my app.. will it store my previous details.
>     otherwise
>     > i have to go for QSettings
>     >
>     >
>     > Thanks
>     >
>     > Yuvaraj R
>     >
>     > On Fri, Jul 17, 2009 at 5:52 PM, Sanderson Coelho
>     > <sanderson.coelho at openbossa.org<mailto:sanderson.coelho at openbossa.org>
>     <mailto:sanderson.coelho at openbossa.org<mailto:sanderson.coelho at openbossa.org>>
>     > <mailto:sanderson.coelho at openbossa.org<mailto:sanderson.coelho at openbossa.org>
>     <mailto:sanderson.coelho at openbossa.org<mailto:sanderson.coelho at openbossa.org>>>> wrote:
>     >
>     >     Hi,
>     >
>     >     addDatabase method does not create a new database, but creates a
>     >     new connection to database.
>     >     and if this already exists, this is removed and a new connection
>     >     is created.
>     >
>     >
>     You can still use sqlite to do this, just change
>     db.setDatabaseName(":memory:"); to something like
>     db.setDatabaseName("/path/to/localfile"); and whatever you store
>     will be
>     persisted to that file.
>
>     --
>     Bill King, Software Engineer
>     Qt Software, Nokia Pty Ltd
>     Brisbane Office
>
>

--
Bill King, Software Engineer
Qt Software, Nokia Pty Ltd
Brisbane Office



---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."

"Please consider our environment before printing this email."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090720/523094a8/attachment.html 


More information about the Qt-interest-old mailing list