PathSvg QML Type

Defines a path using an SVG path data string. More...

Import Statement: import QtQuick
Since: Qt Quick Ultralite 1.8


Detailed Description

The following QML produces the path shown below:

import QtQuick
import QtQuick.Shapes
Rectangle {
    width: 300
    height: 300
    Shape {
        ShapePath {
            strokeColor: "lightblue"
            startX: 50; startY: 50
            PathSvg { path: "L 150 50 L 100 150 z" }

Note: To import QtQuick.Shapes, you must link the Qul::Shapes module to your project. For more information, see Qt Quick Ultralite Shapes QML Types.

See also Path, PathLine, PathQuad, PathCubic, and PathArc.

Property Documentation

path : string

The SVG path data string specifying the path.

See W3C SVG Path Data for more details on this format.

Available under certain Qt licenses.
Find out more.