Qt 5.11 | Qt Quick | Models and Views: AbstractItemModel Example

Qt 5.11.3 Reference Documentation

# Models and Views: AbstractItemModel Example

Shows how to use a QAbstractItemModel subclass as a model in QML.

Files:

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