In questa pagina

Qt Quick Vector Image QML Types

Questo modulo è stato introdotto in Qt 6.8.

Per utilizzare i tipi presenti in questo modulo, importare il modulo con la seguente riga:

import QtQuick.VectorImage

Qt Quick Vector Image offre il supporto per la visualizzazione di file di immagini vettoriali in una scena Qt Quick.

Attualmente supporta il formato di file SVG. Inoltre, è possibile abilitare il supporto per Lottie impostando la proprietà assumeTrustedSource su true e includendo il plugin dal Qt Lottie Animation modulo.

Qt supporta diverse opzioni per la visualizzazione dei file SVG. Per una panoramica e un confronto tra le diverse opzioni, consultare la documentazione dello strumento svgtoqml.

Tipi QML

VectorImage

Carica un file di immagine vettoriale e lo visualizza in una scena Qt Quick

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