aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/qtquick
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2017-02-06 14:52:03 +0100
committerEike Ziller <eike.ziller@qt.io>2017-02-06 14:52:37 +0100
commit6244168202db3649a0a7e23a0e6acdba6ec074a5 (patch)
treed85e5b5daa6cab564179288eb3d528c1b015f1da /doc/src/qtquick
parentf76227fa509dba3bb65110e0432c31efec4c7c72 (diff)
parent69df8ec3218554a08861205461078c0b387a87a4 (diff)
Merge remote-tracking branch 'origin/4.2'
Diffstat (limited to 'doc/src/qtquick')
-rw-r--r--doc/src/qtquick/qtquick-modules-with-plugins.qdoc9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/src/qtquick/qtquick-modules-with-plugins.qdoc b/doc/src/qtquick/qtquick-modules-with-plugins.qdoc
index f336a6163d..be9d8ee5ed 100644
--- a/doc/src/qtquick/qtquick-modules-with-plugins.qdoc
+++ b/doc/src/qtquick/qtquick-modules-with-plugins.qdoc
@@ -60,6 +60,15 @@
then you can specify those using \c{QML_IMPORT_PATH} in the \c{.pro} file of your
application.
+ If you use CMake, add the following command to the CMakeLists.txt file to
+ set the QML import path:
+
+ \code
+ {set(QML_IMPORT_PATH ${CMAKE_SOURCE_DIR}/qml ${CMAKE_BINARY_DIR}/imports CACHE string "" FORCE)}
+ \endcode
+
+ The import path affects all the targets built by the CMake project.
+
Ideally, QML modules have a \c{plugins.qmltypes} file in the same directory
as the \c qmldir file. The \c qmltypes file contains a description of the
types exported by the module's plugins and is loaded by \QC when the