Qt Reference Documentation

# Models and Views: AbstractItemModel Example

Files:

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

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