Shows how to use Qt SQL classes with a model/view framework.
sql
sql/books/main.cpp
Data Processing & I/O
The Cached Table example shows how a table view can be used to access a database, caching any changes to the data until the user explicitly submits them using a push button.
sql
sql/cachedtable/main.cpp
Data Processing & I/O
The Drill Down example shows how to read data from a database as well as submit changes, using the QSqlRelationalTableModel and QDataWidgetMapper classes.
sql
sql/drilldown/main.cpp
Data Processing & I/O
The Master Detail Example shows how to present data from different data sources in the same application. The album titles, and the corresponding artists and release dates, are kept in a database, while each album's tracks are stored in an XML file.
sql
sql/masterdetail/main.cpp
Data Processing & I/O
The Query Model example shows how to make customized versions of data obtained from a SQL query, using a model that encapsulates the query and table views to display the results.
sql
sql/querymodel/main.cpp
Data Processing & I/O
The Relational Table Model example shows how to use table views with a relational model to visualize the relations between items in a database.
sql
sql/relationaltablemodel/relationaltablemodel.cpp
Data Processing & I/O
The SQL Browser example shows how a data browser can be used to visualize the results of SQL statements on a live database.
sql
sql/sqlbrowser/main.cpp
Data Processing & I/O
The SQL Widget Mapper example shows how to use a map information from a database to widgets on a form.
sql
sql/sqlwidgetmapper/main.cpp
Data Processing & I/O
The Table Model example shows how to use a specialized SQL table model with table views to edit information in a database.
sql
sql/tablemodel/tablemodel.cpp
Data Processing & I/O