This Qt C++ application demonstrates how to use the QtSql module to access a SQLite 3 database. The application demonstrates how to use different QtSql classes to search, insert, update, and delete data from the database. The example also shows how to map UI components to the database using the QDataWidgetMapper and QSqlTableModel classes.

The updated example application has been tested to work on Maemo with Qt 4.6.2 and on Symbian with the Qt 4.6.3 release.

Important classes: QSqlDatabase, QSqlQuery, QSqlError, QSqlTableModel, QDataWidgetMapper.

Resource information

Intermediate

Qt: QRentBook Example

XML description:

This Qt C++ application demonstrates how to use the QtSql module to access a SQLite 3 database. The application demonstrates how to use different QtSql classes to search, insert, update, and delete data from the database. The example also shows how to map UI components to the database using the QDataWidgetMapper and QSqlTableModel classes.

The updated example application has been tested to work on Maemo with Qt 4.6.2 and on Symbian with the Qt 4.6.3 release.

Important classes: QSqlDatabase, QSqlQuery, QSqlError, QSqlTableModel, QDataWidgetMapper.


type:
Example
topic:
Files/Data
Maemo
     Qt for Maemo
Qt
     Qt for Symbian
S60
     S60 3rd Edition
     S60 5th Edition
Symbian
     Symbian^3
Intermediate
12 October 2010

Qt: QRentBook Example v1.2

This Qt C++ application demonstrates how to use the QtSql module to access a SQLite 3 database.

Zip Archive (.zip); English (en)

Archived Versions

These versions have been superseded by newer versions and are considered archived.

Intermediate
26 March 2010

Qt: QRentBook Example v1.1

This Qt C++ application demonstrates how to use the QtSql module to access a SQLite 3 database.

Zip Archive (.zip); English (en)

 
 
Additional information
distribution:
Global Web Site
publication rights:
Copyright © 2009-2010 Nokia Corporation.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved