Variáveis globais do CMake no Qt6 QML

Os comandos do CMake reconhecem as seguintes variáveis globais do CMake:

QT_QMLLINT_CONTEXT_PROPERTY_DUMP

Habilita o despejo de propriedades de contexto em alvos lint.

QT_QML_GENERATE_AOTSTATS

Controla se a coleta de estatísticas do compilador QML está ativada.

QT_QML_GENERATE_QMLLS_INI

Habilita a geração automática de arquivos .qmlls.ini para QML Language Server.

QT_QML_GENERATE_QMLLS_INI_NO_CMAKE_CALLS

Personaliza o valor de `no-cmake-calls` nos arquivos `.qmlls.ini` para QML Language Server.

QT_QML_NO_CACHEGEN

Desativa a compilação de arquivos QML em bytecode ou código C++.

QT_QML_NO_QML_PREVIEW (global property)

Controla se o suporte ao qmlpreview é configurado automaticamente para executáveis vinculados ao Qt6::Qml.

QT_QML_OUTPUT_DIRECTORY

Diretório de saída base no qual os módulos QML serão criados por padrão.

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