aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items
diff options
context:
space:
mode:
authorVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>2018-06-08 14:59:15 +0200
committerVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>2018-06-22 11:59:54 +0000
commit9fd90b04a33293bac4d840e1f2e10f9c42b3ec13 (patch)
treef3818eda3eac49e67a0cc8b86f467fe6f21fb2ce /src/quick/items
parent1ae6ef5ec55aedacb36060e6f7790c082725a21d (diff)
Doc: Move the code snippets to a separate snippet file
Change-Id: I17671563f2beebe16ae1d08552854eaf44ae43ee Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/quick/items')
-rw-r--r--src/quick/items/qquickview.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/quick/items/qquickview.cpp b/src/quick/items/qquickview.cpp
index 1ac6c768e8..c411da9519 100644
--- a/src/quick/items/qquickview.cpp
+++ b/src/quick/items/qquickview.cpp
@@ -136,11 +136,7 @@ void QQuickViewPrivate::itemGeometryChanged(QQuickItem *resizeItem, QQuickGeomet
Typical usage:
- \code
- QQuickView *view = new QQuickView;
- view->setSource(QUrl::fromLocalFile("myqmlfile.qml"));
- view->show();
- \endcode
+ \snippet qquickview-ex.cpp 0
To receive errors related to loading and executing QML with QQuickView,
you can connect to the statusChanged() signal and monitor for QQuickView::Error.