QT_QML_GENERATE_AOTSTATS
控制是否启用 QML 编译器的统计信息收集功能。
该变量于 Qt 6.8.3 版本中引入。
当使用qt_add_qml_module() 配置 QML 项目时,默认情况下会收集 QML 代码编译的统计信息。您可以通过设置QT_QML_GENERATE_AOTSTATS 变量来显式启用或禁用此功能。可以通过将该变量传递
-DQT_QML_GENERATE_AOTSTATS=OFF传递给 CMake 可执行文件,或在首次调用qt_add_qml_module() 之前直接在相应的 CMakeLists.txt 文件中进行设置。
set(QT_QML_GENERATE_AOTSTATS OFF)© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.