aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/objectlistmodel/doc/objectlistmodel.rst
blob: d71ee61df2c962fcc51971cf112eaf76b3d40de2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
Object List Model Example
=========================

A list of QObject values can also be used as a model.
A list[QObject,] provides the properties of the objects in the list as roles.

The following application creates a DataObject class with Property values
that will be accessible as named roles when a list[DataObject,] is exposed to QML:

.. image:: objectlistmodel.png
   :width: 400
   :alt: Object List Model Screenshot