blob: 2b45b23f07e33e571dc417f89201f89c48096477 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
|