aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlmodels/qqmllistmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmlmodels/qqmllistmodel.cpp')
-rw-r--r--src/qmlmodels/qqmllistmodel.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qmlmodels/qqmllistmodel.cpp b/src/qmlmodels/qqmllistmodel.cpp
index 2ab8a1795b..94b4a023c6 100644
--- a/src/qmlmodels/qqmllistmodel.cpp
+++ b/src/qmlmodels/qqmllistmodel.cpp
@@ -1926,6 +1926,7 @@ void DynamicRoleModelNodeMetaObject::propertyWritten(int index)
/*!
\qmltype ListModel
\instantiates QQmlListModel
+ \inherits AbstractListModel
\inqmlmodule QtQml.Models
\ingroup qtquick-models
\brief Defines a free-form list data source.
@@ -1943,6 +1944,10 @@ void DynamicRoleModelNodeMetaObject::propertyWritten(int index)
Elements can be manipulated via the model using the setProperty() method, which
allows the roles of the specified element to be set and changed.
+ ListModel inherits from \l{QAbstractListModel} and provides its \l{Q_INVOKABLE}
+ methods. You can, for example use \l{QAbstractItemModel::index} to retrieve a
+ \l{QModelIndex} for a row and column.
+
\section1 Example Usage
The following example shows a ListModel containing three elements, with the roles