Qt 4.7: Query Model Example

Qt Reference Documentation

# Query Model Example

Files:

- sql/querymodel/customsqlmodel.cpp
- sql/querymodel/customsqlmodel.h
- sql/querymodel/editablesqlmodel.cpp
- sql/querymodel/editablesqlmodel.h
- sql/querymodel/main.cpp
- sql/querymodel/querymodel.pro

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.