File: objectlistmodel.rst

package info (click to toggle)
pyside6 6.10.2-3
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 48,184 kB
  • sloc: python: 205,032; cpp: 92,990; xml: 18,587; javascript: 1,182; sh: 163; makefile: 89
file content (14 lines) | stat: -rw-r--r-- 447 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
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