Docs: Fix "Can't link to" example warnings
Task-number: QTBUG-113160 Pick-to: 6.5 Change-Id: I49de891c36d778df5d2727f2f0703d534421e2d5 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
This commit is contained in:
parent
befaf0cd69
commit
961d11e55f
|
@ -621,10 +621,22 @@ This is because the default property of \l Item is its \c data property, and
|
||||||
any items added to this list for an \l Item are automatically added to its
|
any items added to this list for an \l Item are automatically added to its
|
||||||
list of \l {Item::children}{children}.
|
list of \l {Item::children}{children}.
|
||||||
|
|
||||||
Default properties can be useful for reassigning the children of an item. See
|
Default properties can be useful for reassigning the children of an item.
|
||||||
the \l{TabWidget Example}, which uses a default property to
|
For example:
|
||||||
automatically reassign children of the TabWidget as children of an inner
|
|
||||||
ListView. See also \l {Extending QML}.
|
\qml
|
||||||
|
Item {
|
||||||
|
default property alias content: inner.children
|
||||||
|
|
||||||
|
Item {
|
||||||
|
id: inner
|
||||||
|
}
|
||||||
|
}
|
||||||
|
\endqml
|
||||||
|
|
||||||
|
By setting the default property \e alias to \c {inner.children}, any object
|
||||||
|
assigned as a child of the outer item is automatically reassigned as a child
|
||||||
|
of the inner item.
|
||||||
|
|
||||||
\section3 Required Properties
|
\section3 Required Properties
|
||||||
|
|
||||||
|
|
|
@ -102,7 +102,6 @@ Creator.
|
||||||
\li \l{Calendar Example}
|
\li \l{Calendar Example}
|
||||||
\li \l{tableview/gameoflife}{TableView}
|
\li \l{tableview/gameoflife}{TableView}
|
||||||
\li \l{Qt Quick Examples - Text}{Text and Fonts}
|
\li \l{Qt Quick Examples - Text}{Text and Fonts}
|
||||||
\li \l{Qt Quick Examples - Toggle Switch}{Custom Toggle Switch}
|
|
||||||
\endlist
|
\endlist
|
||||||
\enddiv
|
\enddiv
|
||||||
\div {class="doc-column"}
|
\div {class="doc-column"}
|
||||||
|
|
Loading…
Reference in New Issue