Globale CMake-Variablen in Qt6 Qml

CMake-Befehle erkennen die folgenden globalen CMake-Variablen:

QT_QMLLINT_CONTEXT_PROPERTY_DUMP

Aktiviert die Ausgabe von Kontexteigenschaften in Lint-Zielen.

QT_QML_GENERATE_AOTSTATS

Steuert, ob die Erfassung von QML-Compiler-Statistiken aktiviert ist.

QT_QML_GENERATE_QMLLS_INI

Aktiviert die automatische Generierung von .qmlls.ini-Dateien für „ QML Language Server “.

QT_QML_GENERATE_QMLLS_INI_NO_CMAKE_CALLS

Passen den Wert von „no-cmake-calls“ in den .qmlls.ini-Dateien für „ QML Language Server “ an.

QT_QML_NO_CACHEGEN

Deaktiviert die Kompilierung von QML-Dateien in Bytecode oder C++-Code.

QT_QML_NO_QML_PREVIEW (global property)

Legt fest, ob die Unterstützung für „qmlpreview“ automatisch für ausführbare Dateien eingerichtet wird, die gegen Qt6::Qml verknüpft sind.

QT_QML_OUTPUT_DIRECTORY

Basisausgabeverzeichnis, unterhalb dessen QML-Module standardmäßig erstellt werden.

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