本页内容

PathSvg QML Type

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

Import Statement: import QtQuick

属性

详细说明

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

使用 SVG 路径命令绘制的三角形

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 路径数据。

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