• Qt 5.2
  • Qt Quick
  • Models and Views: AbstractItemModel Example
  • Qt 5.2.0 Reference Documentation

Models and Views: AbstractItemModel Example

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

Files:

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

© 2013 Digia Plc and/or its subsidiaries. Documentation contributions included herein are the copyrights of their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.