Propiedades de archivos fuente CMake en Qt6 Qml

Los comandos de CMake conocen las siguientes propiedades de archivos fuente de CMake:

Ver también Referencia de Propiedades CMake.

QT_QMLTC_FILE_BASENAME

Especifica un nombre de archivo .h y .cpp no predeterminado.

QT_QML_GENERATE_ANDROID_JAVA_CLASS

Marca un archivo QML para la generación de código Java.

QT_QML_INTERNAL_TYPE

Marca un archivo QML como que proporciona un tipo interno.

QT_QML_SINGLETON_TYPE

Marca un archivo QML como que proporciona un tipo singleton.

QT_QML_SKIP_CACHEGEN

Excluye un archivo de la compilación a código byte.

QT_QML_SKIP_QMLDIR_ENTRY

Evita que un archivo se añada como tipo al archivo typeinfo del módulo QML.

QT_QML_SKIP_QMLLINT

Evita que un archivo se incluya en el procesamiento automático de qmllint.

QT_QML_SKIP_TYPE_COMPILER

Evita que un archivo se compile a C++ mediante qmltc.

QT_QML_SOURCE_TYPENAME

Anula el nombre de tipo proporcionado por el archivo.

QT_QML_SOURCE_VERSIONS

Especifica un conjunto personalizado de versiones para 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.