diff options
author | Kavindra Palaraja <kavindra.d+qt@gmail.com> | 2016-12-28 21:52:24 +0100 |
---|---|---|
committer | Kavindra Palaraja <kavindra.d+qt@gmail.com> | 2017-01-05 05:46:45 +0000 |
commit | e62fde84e2fac321386c6fbb6fb90a36c0989a3d (patch) | |
tree | c8c2c5cf123314c8ad220cbc17182cbcf6b151ca /src/qml/qml/qqmllist.cpp | |
parent | 0d2db1438e3f7e07f768991a39d4f6b2ab1dc432 (diff) |
Clarified that QQmlListProperty can only be used for lists of QObject-derived object pointers
Added the info to the QQmlListProperty's brief itself so it stands out.
Removed the original note. Also added a See also link to the complete
example.
Task-number: QTBUG-37888
Change-Id: I9e1b77b035321ade44fe57d56e68a9c3d20cb879
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/qml/qml/qqmllist.cpp')
-rw-r--r-- | src/qml/qml/qqmllist.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qml/qml/qqmllist.cpp b/src/qml/qml/qqmllist.cpp index a719956483..edd93ef03d 100644 --- a/src/qml/qml/qqmllist.cpp +++ b/src/qml/qml/qqmllist.cpp @@ -335,7 +335,7 @@ int QQmlListReference::count() const \since 5.0 \inmodule QtQml \brief The QQmlListProperty class allows applications to expose list-like -properties to QML. +properties of QObject-derived classes to QML. QML has many list properties, where more than one object value can be assigned. The use of a list property from QML looks like this: @@ -369,7 +369,8 @@ QML list properties are type-safe - in this case \c {Fruit} is a QObject type th The \l {Qt Quick 1} version of this class is named QDeclarativeListProperty. -\note QQmlListProperty can only be used for lists of QObject-derived object pointers. +\sa {Extending QML - Object and List Property Types Example} + */ /*! |