Merge remote-tracking branch 'origin/4.2'

Change-Id: Idd63494e3878dbf8811c35beb957562255d83813
This commit is contained in:
Eike Ziller
2017-02-06 14:52:03 +01:00
20 changed files with 109 additions and 527 deletions

View File

@@ -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