diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-11-12 12:11:29 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-11-12 11:38:18 +0000 |
commit | 54d4f8f526f9c9a1af702b14925e1d34ee8b2134 (patch) | |
tree | 0a95203ab3c9fadae4d20f6aa497a58a5dfe819a /src/quick/items | |
parent | c6452857a96d24325906ebd5529cfdda916a68fc (diff) |
QQuickView docs: show correct usage of setInitialProperties
Pick-to: 5.15
Change-Id: If63f4c59f18bc0754ce2e68e424f6efd0f512d30
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quick/items')
-rw-r--r-- | src/quick/items/qquickview.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/quick/items/qquickview.cpp b/src/quick/items/qquickview.cpp index 97f6689d8a..b3a5270e9b 100644 --- a/src/quick/items/qquickview.cpp +++ b/src/quick/items/qquickview.cpp @@ -240,7 +240,11 @@ void QQuickView::setSource(const QUrl& url) Sets the initial properties \a initialProperties with which the QML component gets initialized after calling \l QQuickView::setSource(). + \snippet qquickview-ex.cpp 1 + \note You can only use this function to initialize top-level properties. + \note This function should always be called before setSource, as it has + no effect once the component has become \c Ready. \sa QQmlComponent::createWithInitialProperties() \since 5.14 |