Proprietà dei file sorgente CMake in Qt6 QML

I comandi CMake riconoscono le seguenti proprietà dei file sorgente CMake:

Vedi anche Riferimento alle proprietà CMake.

QT_QMLTC_FILE_BASENAME

Specifica un nome di file .h e .cpp diverso da quello predefinito.

QT_QML_GENERATE_ANDROID_JAVA_CLASS

Contrassegna un file QML per la generazione di codice Java.

QT_QML_INTERNAL_TYPE

Contrassegna un file QML come fornitore di un tipo interno.

QT_QML_SINGLETON_TYPE

Contrassegna un file QML come fornitore di un tipo singleton.

QT_QML_SKIP_CACHEGEN

Esclude un file dalla compilazione in byte code.

QT_QML_SKIP_QMLDIR_ENTRY

Esclude un file dall'aggiunta come tipo nel file typeinfo del modulo QML.

QT_QML_SKIP_QMLLINT

Impedisce che un file venga incluso nell'elaborazione automatica di qmllint.

QT_QML_SKIP_TYPE_COMPILER

Esclude un file dalla compilazione in C++ tramite qmltc.

QT_QML_SOURCE_TYPENAME

Sovrascrive il nome del tipo fornito dal file.

QT_QML_SOURCE_VERSIONS

Specifica un insieme personalizzato di versioni per un tipo.

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