diff options
Diffstat (limited to 'examples/quick/models/objectlistmodel/doc/objectlistmodel.rst')
-rw-r--r-- | examples/quick/models/objectlistmodel/doc/objectlistmodel.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/quick/models/objectlistmodel/doc/objectlistmodel.rst b/examples/quick/models/objectlistmodel/doc/objectlistmodel.rst new file mode 100644 index 000000000..a4af62706 --- /dev/null +++ b/examples/quick/models/objectlistmodel/doc/objectlistmodel.rst @@ -0,0 +1,14 @@ +Object List Model Example +========================= + +.. tags:: Android + +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 |