aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@qt.io>2021-12-06 13:52:16 +0100
committerLeena Miettinen <riitta-leena.miettinen@qt.io>2021-12-14 08:04:37 +0000
commit229d26df6fa68c1fe170f2b156abf48bb788b84d (patch)
tree3f767f9c36170bc8da6f4e0ca57737ffbc327c55
parent7ae4e1f7fab2076cffa17421891d25f5e1cd784b (diff)
Doc: Describe CMake config for debugging running Qt Quick apps
The target_compile_definitions(myapp PRIVATE QT_QML_DEBUG) command is used. Task-number: QTCREATORBUG-26616 Change-Id: Ifde5f6f11081afa8af19e0339733d7380d1d14be Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r--doc/qtcreator/src/debugger/qtquick-debugging.qdoc14
-rw-r--r--doc/qtcreator/src/external-resources/external-resources.qdoc4
2 files changed, 16 insertions, 2 deletions
diff --git a/doc/qtcreator/src/debugger/qtquick-debugging.qdoc b/doc/qtcreator/src/debugger/qtquick-debugging.qdoc
index 05b89ebab8..6f6ca89f45 100644
--- a/doc/qtcreator/src/debugger/qtquick-debugging.qdoc
+++ b/doc/qtcreator/src/debugger/qtquick-debugging.qdoc
@@ -132,8 +132,18 @@
\li Build the application by using the appropriate configuration
parameters (if you build the application with \QC, it automatically
uses the correct configuration):
-
- \c {CONFIG+=qml_debug}
+ \list
+ \li When using CMake, the
+ \l{CMake: target_compile_definitions command}
+ {target_compile_definitions} command is defined
+ in the CMakeLists.txt file:
+ \c {target_compile_definitions(myapp PRIVATE QT_QML_DEBUG)}
+
+ Where \e myapp is the application to debug.
+ \li When using qmake, the following value is defined for the
+ \l CONFIG property in the .pro file:
+ \c {CONFIG += qml_debug}
+ \endlist
\endif
\li Start the application with the following arguments:
diff --git a/doc/qtcreator/src/external-resources/external-resources.qdoc b/doc/qtcreator/src/external-resources/external-resources.qdoc
index 8fbf218543..dc3f15c486 100644
--- a/doc/qtcreator/src/external-resources/external-resources.qdoc
+++ b/doc/qtcreator/src/external-resources/external-resources.qdoc
@@ -122,6 +122,10 @@
\title CMake: set_property command
*/
/*!
+ \externalpage https://cmake.org/cmake/help/latest/command/target_compile_definitions.html
+ \title CMake: target_compile_definitions command
+*/
+/*!
\externalpage https://cmake.org/cmake/help/latest/command/target_link_libraries.html
\title CMake: target_link_libraries command
*/