aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2022-03-30 16:44:23 +0200
committerThomas Hartmann <thomas.hartmann@qt.io>2022-04-01 08:35:36 +0000
commitb43da9c42d196406d88ce2a57c3e8c1dc2d4a274 (patch)
tree7377a0531674587b22ca1e2c258d978f255b9e31 /doc
parent38d57445e1318b04c52bd126266e1a3054fb372a (diff)
QmlDesigner: Explain how to build qtquickdesigner-components with CMake
For qmake you have to use the qmake or 5.15 branch. Using links to code.qt.io instead of codereview. Change-Id: I8915529968623f8c239f1abc1165f3e7f95a4866 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'doc')
-rw-r--r--doc/qtcreator/src/qtquick/qtquick-from-qmlproject-to-pro.qdoc19
1 files changed, 16 insertions, 3 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 289c61b41f..bc58931c7b 100644
--- a/doc/qtcreator/src/qtquick/qtquick-from-qmlproject-to-pro.qdoc
+++ b/doc/qtcreator/src/qtquick/qtquick-from-qmlproject-to-pro.qdoc
@@ -173,17 +173,18 @@
If you use Qt Quick Studio Components or Effects in your project, you have
to check out and install the \e {Qt Quick Designer Components} module from
- \l{https://codereview.qt-project.org/admin/repos/qt-labs/qtquickdesigner-components}
+ \l{https://code.qt.io/cgit/qt-labs/qtquickdesigner-components.git/}
{Qt Code Review}.
For example:
\badcode
- git clone "https://codereview.qt-project.org/qt-labs/qtquickdesigner-components"
+ git clone https://code.qt.io/qt-labs/qtquickdesigner-components.git
\endcode
Then use qmake from your Qt installation to build the module and to add it
to your Qt. Switch to the directory that contains the sources (usually,
- qtquickdesigner-components), and enter the following commands:
+ qtquickdesigner-components), make sure you checkout the qmake branch, and enter
+ the following commands:
\badcode
<path_to_qmake>\qmake -r
@@ -193,6 +194,18 @@
On Windows, use the \c nmake and \c {nmake install} commands instead.
+ If you prefer CMake instead and you want to benefit from the QML compilation,
+ then you can checkout the dev branch instead. CMake is only supported since Qt 6.2.
+ Enter the following commands:
+
+ \badcode
+ mkdir build
+ cd build
+ cmake -GNinja -DCMAKE_INSTALL_PREFIX=<path_to_qt_install_directory> <path_to_qtquickdesigner-components>
+ cmake --build .
+ cmake --install .
+ \endcode
+
\section1 Adding Qt Quick Timeline Module to Qt Installations
\note You only need to do this if your Qt version is older than 5.14.