aboutsummaryrefslogtreecommitdiffstats
path: root/doc/qtcreator
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@qt.io>2020-06-02 14:15:23 +0200
committerLeena Miettinen <riitta-leena.miettinen@qt.io>2020-06-03 12:54:55 +0000
commitb176a24091142ee83fb7f710b992cc56007b0d9a (patch)
treed23f738d87bf03539547642a8a42b5206d7c8934 /doc/qtcreator
parent586ce5b4721405af6ffdce78e54bbec70b6afd94 (diff)
Doc: Add example code for specifying QML import paths
... when converting Qt Quick UI projects to applications. Fixes: QTCREATORBUG-24081 Change-Id: I00989a84d096c6e989e050d7d3b0724249946b6c Reviewed-by: Tino Pyssysalo <tino.pyssysalo@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'doc/qtcreator')
-rw-r--r--doc/qtcreator/src/qtquick/qtquick-from-qmlproject-to-pro.qdoc8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/qtcreator/src/qtquick/qtquick-from-qmlproject-to-pro.qdoc b/doc/qtcreator/src/qtquick/qtquick-from-qmlproject-to-pro.qdoc
index d76327ad35..00e4bb74e8 100644
--- a/doc/qtcreator/src/qtquick/qtquick-from-qmlproject-to-pro.qdoc
+++ b/doc/qtcreator/src/qtquick/qtquick-from-qmlproject-to-pro.qdoc
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2019 The Qt Company Ltd.
+** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Creator documentation.
@@ -91,6 +91,12 @@
RESOURCES += \
$$files(qml/*)
\endcode
+ \li Also edit the value of the \c QML_IMPORT_PATH option to specify the
+ QML import path:
+ \badcode
+ QML_IMPORT_PATH = qml/imports
+ \endcode
+ Where \c {qml/imports} is the import path.
\li Select \uicontrol Build > \uicontrol {Run qmake} to apply the
\c RESOURCES option to the build configuration.
\li Open the \e {main.cpp} file and replace the QQmlApplicationEngine