aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlapplicationengine.cpp
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@digia.com>2014-09-30 10:40:40 +0200
committerMitch Curtis <mitch.curtis@digia.com>2014-09-30 14:24:48 +0200
commit0322dddbca7cb0024d2b01fcfa25f996788ba57d (patch)
treec131c01a5be438d42bb2332136f43174d3eca940 /src/qml/qml/qqmlapplicationengine.cpp
parent328f7bbab666c7af1aec2df69cbdd7ea1a3991db (diff)
Document that QQmlApplicationEngine's root item must be a window.
Change-Id: I22466e82105c9b56894a53400394d1124191f93d Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Diffstat (limited to 'src/qml/qml/qqmlapplicationengine.cpp')
-rw-r--r--src/qml/qml/qqmlapplicationengine.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlapplicationengine.cpp b/src/qml/qml/qqmlapplicationengine.cpp
index 56eddfa478..240c01233b 100644
--- a/src/qml/qml/qqmlapplicationengine.cpp
+++ b/src/qml/qml/qqmlapplicationengine.cpp
@@ -160,6 +160,10 @@ void QQmlApplicationEnginePrivate::_q_finishLoad(QObject *o)
}
\endcode
+ Unlike QQuickView, QQmlApplicationEngine does not automatically create a root
+ window. If you are using visual items from Qt Quick, you will need to place
+ them inside of a \l [QML] {Window}.
+
You can also use QCoreApplication with QQmlApplicationEngine, if you are not using any QML modules which require a QGuiApplication (such as \c QtQuick).
List of configuration changes from a default QQmlEngine:
@@ -167,7 +171,7 @@ void QQmlApplicationEnginePrivate::_q_finishLoad(QObject *o)
\list
\li Connecting Qt.quit() to QCoreApplication::quit()
\li Automatically loads translation files from an i18n directory adjacent to the main QML file.
- \li Automatically sets an incubuation controller if the scene contains a QQuickWindow.
+ \li Automatically sets an incubation controller if the scene contains a QQuickWindow.
\li Automatically sets a \c QQmlFileSelector as the url interceptor, applying file selectors to all
QML files and assets.
\endlist