Variables globales de CMake en Qt6 QML

Los comandos de CMake reconocen las siguientes variables globales de CMake:

QT_QMLLINT_CONTEXT_PROPERTY_DUMP

Habilita el volcado de propiedades de contexto en los objetivos de lint.

QT_QML_GENERATE_AOTSTATS

Controla si está habilitada la recopilación de estadísticas del compilador de QML.

QT_QML_GENERATE_QMLLS_INI

Habilita la generación automática de archivos .qmlls.ini para QML Language Server.

QT_QML_GENERATE_QMLLS_INI_NO_CMAKE_CALLS

Personaliza el valor de «no-cmake-calls» en los archivos .qmlls.ini para QML Language Server.

QT_QML_NO_CACHEGEN

Desactiva la compilación de archivos QML en código byte o código C++.

QT_QML_NO_QML_PREVIEW (global property)

Controla si se configura automáticamente la compatibilidad con qmlpreview para los ejecutables que se enlazan con Qt6::Qml.

QT_QML_OUTPUT_DIRECTORY

Directorio de salida base en el que se crearán por defecto los módulos QML.

© 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.