Variabili globali di CMake in Qt6 QML

I comandi CMake riconoscono le seguenti variabili globali CMake:

QT_QMLLINT_CONTEXT_PROPERTY_DUMP

Abilita il salvataggio delle proprietà di contesto nei target lint.

QT_QML_GENERATE_AOTSTATS

Controlla se la raccolta delle statistiche del compilatore QML è abilitata.

QT_QML_GENERATE_QMLLS_INI

Abilita la generazione automatica dei file .qmlls.ini per QML Language Server.

QT_QML_GENERATE_QMLLS_INI_NO_CMAKE_CALLS

Personalizza il valore di `no-cmake-calls` nei file `.qmlls.ini` per QML Language Server.

QT_QML_NO_CACHEGEN

Disabilita la compilazione dei file QML in bytecode o codice C++.

QT_QML_NO_QML_PREVIEW (global property)

Controlla se il supporto per qmlpreview viene configurato automaticamente per gli eseguibili che effettuano il collegamento a Qt6::Qml.

QT_QML_OUTPUT_DIRECTORY

Directory di output di base in cui verranno creati per impostazione predefinita i moduli 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.