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:
Safiyyah Moosa 2023-04-26 14:27:38 +02:00
parent befaf0cd69
commit 961d11e55f
2 changed files with 16 additions and 5 deletions

View File

@ -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
list of \l {Item::children}{children}.
Default properties can be useful for reassigning the children of an item. See
the \l{TabWidget Example}, which uses a default property to
automatically reassign children of the TabWidget as children of an inner
ListView. See also \l {Extending QML}.
Default properties can be useful for reassigning the children of an item.
For example:
\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

View File

@ -102,7 +102,6 @@ Creator.
\li \l{Calendar Example}
\li \l{tableview/gameoflife}{TableView}
\li \l{Qt Quick Examples - Text}{Text and Fonts}
\li \l{Qt Quick Examples - Toggle Switch}{Custom Toggle Switch}
\endlist
\enddiv
\div {class="doc-column"}