Qt 4.8: Models and Views: AbstractItemModel Example

Qt Reference Documentation

- Qt 4.8
- ALL VERSIONS

- A
- A
- A
- Print

# Models and Views: AbstractItemModel Example

Files:

- declarative/modelviews/abstractitemmodel/model.cpp
- declarative/modelviews/abstractitemmodel/model.h
- declarative/modelviews/abstractitemmodel/qml/abstractitemmodel/view.qml
- declarative/modelviews/abstractitemmodel/main.cpp
- declarative/modelviews/abstractitemmodel/abstractitemmodel.pro

This example shows how to use a QAbstractItemModel subclass as a model in QML.