Qt-interest Archive, March 2007
Database?
Message 1 in thread
Hi all,
I'm working on a database app, but struggling on setting it up.
I've created a form in Qt Designer, and I would like to know how to get the
data that the user enters into this form to be stored elsewhere, for future
use. By elsewhere, I mean a list that the user can access.
Any help is much appreciated
_________________________________________________________________
Match.com - Click Here To Find Singles In Your Area Today!
http://match.engb.msn.com/
--
[ signature omitted ]
Message 2 in thread
On 03.03.07 13:20:09, Marco Gallone wrote:
> I'm working on a database app, but struggling on setting it up.
> I've created a form in Qt Designer, and I would like to know how to get the
> data that the user enters into this form to be stored elsewhere, for future
> use. By elsewhere, I mean a list that the user can access.
Use the Qt Database classes, like QSqlDatabase, QSqlQuery. See the
documentation and examples for more information on how to work with
these.
Andreas
--
[ signature omitted ]
Message 3 in thread
One other idea is to use QSqlQueryModel and a View class (e.g
QTableView),
if you want to present the data to the user and with Qt's Model/View
classes the view and the model are in sync, if the user edit the data.
If this is a solution for you, take a look at the Model/View
Programming.
I hope this will help you!
Heiko
Am 03.03.2007 um 17:18 schrieb Andreas Pakulat:
> On 03.03.07 13:20:09, Marco Gallone wrote:
>> I'm working on a database app, but struggling on setting it up.
>> I've created a form in Qt Designer, and I would like to know how
>> to get the
>> data that the user enters into this form to be stored elsewhere,
>> for future
>> use. By elsewhere, I mean a list that the user can access.
>
> Use the Qt Database classes, like QSqlDatabase, QSqlQuery. See the
> documentation and examples for more information on how to work with
> these.
>
> Andreas
>
> --
> You will be married within a year.
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
> with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
--
[ signature omitted ]