Qt Quick Vector Image QML 类型

该模块在 Qt 6.8 引入。

要使用此模块中的类型,采用以下行 import 模块:

import QtQuick.VectorImage
					

Qt Quick Vector Image provides support for displaying vector image files in a Qt Quick scene.

目前支持 SVG file format. In addition, Lottie support can be enabled by setting the assumeTrustedSource property to true and including the plugin from the Qt Lottie Animation module. This plugin is currently considered tech preview.

Qt supports multiple options for displaying SVG files. For an overview and comparison of the different ones, see the documentation of the svgtoqml 工具。

QML 类型

VectorImage

Loads a vector image file and displays it in a Qt Quick scene