C

Shape QML Type

Renders a path. More...

Import Statement: import QtQuick.Shapes
Since: Qt Quick Ultralite 1.8
Inherits:

Item

Detailed Description

See Path for a detailed overview of the supported path elements.

Shape {
    width: 200
    height: 150
    anchors.centerIn: parent
    ShapePath {
        strokeWidth: 4
        strokeColor: "red"

        startX: 20; startY: 20
        PathLine { x: 180; y: 130 }
        PathLine { x: 20; y: 130 }
        PathLine { x: 20; y: 20 }
    }
}

See also Qt Quick Ultralite shapes Example, Path, PathMove, PathLine, PathQuad, PathCubic, PathArc, and PathSvg.

Available under certain Qt licenses.
Find out more.