本页内容

Qt Quick Vector Image QML Types

该模块于 Qt 6.8 中引入。

要使用该模块中的类型,请使用以下代码行导入该模块:

import QtQuick.VectorImage

Qt Quick “矢量图像”模块支持在Qt Quick 场景中显示矢量图像文件。

目前支持SVG 文件格式。此外,可通过将assumeTrustedSource 属性设置为true,并从 Qt Lottie Animation 模块中引入该插件。

Qt SVG 支持多种显示 SVG 文件的选项。有关这些选项的概述和比较,请参阅svgtoqml工具的文档。

QML 类型

VectorImage

加载矢量图像文件,并在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.