Qt 4.8: Models and Views: Object ListModel Example

Qt Reference Documentation

- Qt 4.8
- ALL VERSIONS

- A
- A
- A
- Print

# Models and Views: Object ListModel Example

Files:

- declarative/modelviews/objectlistmodel/dataobject.cpp
- declarative/modelviews/objectlistmodel/dataobject.h
- declarative/modelviews/objectlistmodel/qml/objectlistmodel/view.qml
- declarative/modelviews/objectlistmodel/main.cpp
- declarative/modelviews/objectlistmodel/objectlistmodel.pro
- declarative/modelviews/objectlistmodel/objectlistmodel.qmlproject

This example shows how to use a QList<QObject*> as a model in QML.