-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.10
-
None
Currently QML debugging is enabled by setting the compiler define -DQT_QML_DEBUG.
This is done by Qt Creator by the means of CMAKE_CXX_FLAGS_INIT. But as pointed out at https://bugreports.qt.io/browse/QTBUG-139293 the flag is documented by CMake as something used by a CMake toolchain file, and not directly from users.
Since we know that modifying CMAKE_CXX_FLAGS is considered bad practice by CMake, it would be great if Qt CMake would have a way to set the flag via a property / global variable.
- relates to
-
QTVSADDINBUG-1328 Use the CMake variable QT_ENABLE_QML_DEBUG to enable QML debugging
-
- Open
-
-
VSCODEEXT-234 Use the CMake variable QT_ENABLE_QML_DEBUG to enable QML debugging
-
- Open
-
- resulted from
-
QTBUG-139293 Boot2Qt CMake toolchain file overwrites CMAKE_CXX_FLAGS_INIT
-
- Reported
-
For Gerrit Dashboard: QTBUG-139551 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
671281,6 | Add QT_QML_DEBUG compile definition to the Qt6::Qml target | dev | qt/qtdeclarative | Status: NEW | +2 | +1 |