diff options
Diffstat (limited to 'examples/qml/editingmodel/doc')
-rw-r--r-- | examples/qml/editingmodel/doc/editingmodel.rst | 16 | ||||
-rw-r--r-- | examples/qml/editingmodel/doc/qabstractlistmodelqml.png | bin | 0 -> 45810 bytes |
2 files changed, 16 insertions, 0 deletions
diff --git a/examples/qml/editingmodel/doc/editingmodel.rst b/examples/qml/editingmodel/doc/editingmodel.rst new file mode 100644 index 000000000..2b45b23f0 --- /dev/null +++ b/examples/qml/editingmodel/doc/editingmodel.rst @@ -0,0 +1,16 @@ +QAbstractListModel in QML +========================= + +.. tags:: Android + +This example shows how to add, remove and move items inside a QML +ListView, but showing and editing the data via roles using a +QAbstractListModel from Python. + +You can add new elements and reset the view using the two top buttons, +remove elements by 'middle click' the element, and move the elements +with a 'left click' plus dragging the item around. + +.. image:: qabstractlistmodelqml.png + :width: 400 + :alt: QAbstractListModel/ListView Screenshot diff --git a/examples/qml/editingmodel/doc/qabstractlistmodelqml.png b/examples/qml/editingmodel/doc/qabstractlistmodelqml.png Binary files differnew file mode 100644 index 000000000..6e181fba1 --- /dev/null +++ b/examples/qml/editingmodel/doc/qabstractlistmodelqml.png |