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

12 October 2010
Intermediate

Qt: QRentBook Example v1.2

file name:
Qt_QRentBook_Example_v1_2_en.zip
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
language:
English (en)
media encoding:
Zip Archive (.zip)
compatibility:
Nokia N8 and Nokia N900 devices
Additional information
distribution:
Global Web Site
edition:
1
editorial revision:
2
publication rights:
Copyright © 2009-2010 Nokia Corporation.
size:
147 kB
supersedes:
Qt: QRentBook Example v1.1
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