Qt Quick Vector Image QML Types
该模块在 Qt 6.8 中引入。
要使用该模块中的类型,请用以下一行导入该模块:
import QtQuick.VectorImage
Qt Quick 矢量图像支持在Qt Quick 场景中显示矢量图像文件。
它目前支持SVG
文件格式。此外,通过将 assumeTrustedSource 属性设置为 true 并将插件从 Qt Lottie Animation模块中包含该插件,即可启用 Lottie 支持。该插件目前处于技术预览阶段。
Qt SVG 支持多种显示 SVG 文件的选项。有关不同选项的概述和比较,请参阅svgtoqml工具的文档。
QML 类型
加载矢量图像文件并将其显示在Qt Quick 场景中 |
© 2025 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.