[Qt-interest] QSql doubts
Scott Aron Bloom
Scott.Bloom at sabgroup.com
Mon Jul 20 02:49:18 CEST 2009
The problem with your example is you are telling SQLLite to use an in
memory database (that's what the :memory: does).
Instead point it to a path, where you want to save the db file, and it
will be persistent from run to run.
Scott
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Yuvaraj R
Sent: Friday, July 17, 2009 5:51 AM
To: Sanderson Coelho
Cc: qt-interest
Subject: Re: [Qt-interest] QSql doubts
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> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090719/3b5ace36/attachment.html
More information about the Qt-interest-old
mailing list