PathSvg QML Type

使用 SVG 路径数据字符串定义路径。更多

Import Statement: import QtQuick

属性

详细说明

以下 QML 生成的路径如下所示:

Path {
    startX: 50; startY: 50
    PathSvg { path: "L 150 50 L 100 150 z" }
}

另请参阅 Path,PathLine,PathQuad,PathCubic,PathArc,PathAngleArc, 和PathCurve

属性文档

path : string

指定路径的 SVG 路径数据字符串。

有关此格式的更多详情,请参阅W3C SVG 路径数据


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