From 229d26df6fa68c1fe170f2b156abf48bb788b84d Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Mon, 6 Dec 2021 13:52:16 +0100 Subject: [PATCH] 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 --- doc/qtcreator/src/debugger/qtquick-debugging.qdoc | 12 +++++++++++- .../src/external-resources/external-resources.qdoc | 4 ++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/doc/qtcreator/src/debugger/qtquick-debugging.qdoc b/doc/qtcreator/src/debugger/qtquick-debugging.qdoc index 05b89ebab89..6f6ca89f450 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): + \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)} - \c {CONFIG+=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 8fbf2185434..dc3f15c4863 100644 --- a/doc/qtcreator/src/external-resources/external-resources.qdoc +++ b/doc/qtcreator/src/external-resources/external-resources.qdoc @@ -121,6 +121,10 @@ \externalpage https://cmake.org/cmake/help/latest/command/set_property.html \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