PathQuad QML Type

Defines a quadratic Bezier curve with a control point. 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: "black"
            startX: 0; startY: 0
            PathQuad { x: 200; y: 0; controlX: 100; controlY: 150 }

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, PathCubic, PathLine, PathArc, and PathSvg.

Property Documentation

controlX : real

controlY : real

Defines the position of the control point.

x : real

y : real

Defines the end point of the curve.

Available under certain Qt licenses.
Find out more.