forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -173,17 +173,18 @@
|
|||||||
|
|
||||||
If you use Qt Quick Studio Components or Effects in your project, you have
|
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
|
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}.
|
{Qt Code Review}.
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
\badcode
|
\badcode
|
||||||
git clone "https://codereview.qt-project.org/qt-labs/qtquickdesigner-components"
|
git clone https://code.qt.io/qt-labs/qtquickdesigner-components.git
|
||||||
\endcode
|
\endcode
|
||||||
|
|
||||||
Then use qmake from your Qt installation to build the module and to add it
|
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,
|
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
|
\badcode
|
||||||
<path_to_qmake>\qmake -r
|
<path_to_qmake>\qmake -r
|
||||||
@@ -193,6 +194,18 @@
|
|||||||
|
|
||||||
On Windows, use the \c nmake and \c {nmake install} commands instead.
|
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
|
\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.
|
\note You only need to do this if your Qt version is older than 5.14.
|
||||||
|
Reference in New Issue
Block a user