QT_QML_GENERATE_AOTSTATS

Contrôle si la collecte des statistiques du compilateur QML est activée.

Cette variable a été introduite dans Qt 6.8.3.

Lorsqu'un projet QML est configuré à l'aide de qt_add_qml_module, les statistiques de la compilation du code QML sont collectées par défaut. Vous pouvez explicitement choisir d'accepter ou de refuser cette collecte en définissant la variable QT_QML_GENERATE_AOTSTATS. Elle peut être définie pour l'ensemble du projet en passant

-DQT_QML_GENERATE_AOTSTATS=OFF

à l'exécutable CMake, ou en la définissant directement dans le fichier CMakeLists.txt correspondant avant le premier appel à qt_add_qml_module.

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.