path: root/src
diff options
authorMitch Curtis <>2018-07-02 08:04:48 +0200
committerMitch Curtis <>2018-07-02 06:41:57 +0000
commit90a7a1a6c143c610ff08119cd513526da9e637f7 (patch)
tree81225eed81d5cdf9c719a62e4502275fce315819 /src
parentffeaac704efc9eb85464d0a401d98e28991ec4d3 (diff)
Doc: clarify behavior of QQuickItem's constructor
It uses the parent argument as both a visual parent and a QObject parent. Change-Id: Ib6c645c072462501c77f27085cba7538703c5966 Reviewed-by: Simon Hausmann <>
Diffstat (limited to 'src')
1 files changed, 3 insertions, 0 deletions
diff --git a/src/quick/items/qquickitem.cpp b/src/quick/items/qquickitem.cpp
index 9be8b7f2b9..aed673d595 100644
--- a/src/quick/items/qquickitem.cpp
+++ b/src/quick/items/qquickitem.cpp
@@ -2355,6 +2355,9 @@ void QQuickItemPrivate::updateSubFocusItem(QQuickItem *scope, bool focus)
\fn QQuickItem::QQuickItem(QQuickItem *parent)
Constructs a QQuickItem with the given \a parent.
+ The \c parent will be used as both the \l {setParentItem()}{visual parent}
+ and the \l QObject parent.
QQuickItem::QQuickItem(QQuickItem* parent)
: QObject(*(new QQuickItemPrivate), parent)