C

PathCubic QML Type

Defines a cubic Bezier curve with two control points. More...

Import Statement: import QtQuick
Since: Qt Quick Ultralite 1.8

Properties

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: 20; startY: 0
            PathCubic {
                x: 180; y: 0
                control1X: -10; control1Y: 90
                control2X: 210; control2Y: 90
            }
        }
    }
}

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

Property Documentation

control2X : real

control2Y : real

Defines the position of the second control point.


control1X : real

control1Y : real

Defines the position of the first control point.


x : real

y : real

Defines the end point of the curve.


Available under certain Qt licenses.
Find out more.