QT_QML_NO_QML_PREVIEW (propriété de cible)

Exclut une cible de la création automatique de cibles « qmlpreview ».

Cette propriété a été introduite dans Qt 6.12.

Définissez cette propriété sur une valeur « true » pour une cible afin d'empêcher la création automatique d'une cible « qmlpreview » pour celle-ci. Par défaut, une telle cible est créée pour chaque exécutable lié à Qt6::Qml.

Cette propriété n'a d'effet que sur le comportement automatique, qui peut également être désactivé globalement via QT_QML_NO_QML_PREVIEW. Elle n'a aucun effet sur un appel explicite à qt_add_qml_preview() pour la même cible.

Voir également QT_QML_NO_QML_PREVIEW (propriété globale) et qt_add_qml_preview().

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