aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/editingmodel/doc/editingmodel.rst
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/editingmodel/doc/editingmodel.rst')
-rw-r--r--examples/declarative/editingmodel/doc/editingmodel.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/declarative/editingmodel/doc/editingmodel.rst b/examples/declarative/editingmodel/doc/editingmodel.rst
new file mode 100644
index 000000000..d76bebc22
--- /dev/null
+++ b/examples/declarative/editingmodel/doc/editingmodel.rst
@@ -0,0 +1,14 @@
+QAbstractListModel in QML
+=========================
+
+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