-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.10
-
None
-
-
12af84f81 (dev), 9917e1265 (6.10), 46de6272c (tqtc/lts-6.8)
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
-