Meego Wiki
Views

QML/QSqlTableModel

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "== Overview == This tutorial covers how to use a QSqlTableModel in QML. == Pre-requisites == Qt Creator (MeeGo 1.1 SDK version) installed. See [[SDK/Docs/1.1/Getting_started_w…")
m (+cats)
 
(One intermediate revision not shown)
Line 10: Line 10:
No special system setup is required.
No special system setup is required.
 +
 +
== How to ==
 +
 +
The first step is to create a simple class that inherits QSqlTableModel.
 +
 +
Then we set some properties on the viewer so it will fill text fields with SqlModel fields.
 +
 +
[[Category:tutorial]]
 +
[[Category:qml]]

Latest revision as of 08:47, 31 December 2010

Contents

Overview

This tutorial covers how to use a QSqlTableModel in QML.

Pre-requisites

Qt Creator (MeeGo 1.1 SDK version) installed. See these instructions.

System Setup

No special system setup is required.

How to

The first step is to create a simple class that inherits QSqlTableModel.

Then we set some properties on the viewer so it will fill text fields with SqlModel fields.

Personal tools