diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2020-11-09 18:49:09 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-01-05 16:14:11 +0000 |
commit | b6f2a89239a478154d0c196c30490d63761df9b0 (patch) | |
tree | 9c4ff4ff26a29351c48d52fb440c861ba9bee663 /src/quick/items/qquickitem.cpp | |
parent | e203a185cfab199a89a33b903096d6d0023a8a88 (diff) |
Doc: mention that Item's childrenRect property is local to the item
As opposed to being local to the item's parent.
Change-Id: Idcf2cdbedcac24a6890ce761c3f2a23f2c7a8dc4
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
(cherry picked from commit a0769549cdb81c7104b60c2a67dfa62e8c42c224)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/quick/items/qquickitem.cpp')
-rw-r--r-- | src/quick/items/qquickitem.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/quick/items/qquickitem.cpp b/src/quick/items/qquickitem.cpp index e02df00595..31cd317dc9 100644 --- a/src/quick/items/qquickitem.cpp +++ b/src/quick/items/qquickitem.cpp @@ -3666,6 +3666,10 @@ QQmlListProperty<QObject> QQuickItemPrivate::data() This property is useful if you need to access the collective geometry of an item's children in order to correctly size the item. + + The geometry that is returned is local to the item. For example: + + \snippet qml/item/childrenRect.qml local */ /*! \property QQuickItem::childrenRect @@ -3675,6 +3679,10 @@ QQmlListProperty<QObject> QQuickItemPrivate::data() This property is useful if you need to access the collective geometry of an item's children in order to correctly size the item. + + The geometry that is returned is local to the item. For example: + + \snippet qml/item/childrenRect.qml local */ QRectF QQuickItem::childrenRect() { |