Path QML Type

A Path object defines a path for use by PathView. More...

Import Statement: import .
Since: Qt 4.7

Properties

Detailed Description

A Path is composed of one or more path segments - PathLine, PathQuad, PathCubic.

The spacing of the items along the Path can be adjusted via a PathPercent object.

PathAttribute allows named attributes with values to be defined along the path.

See also PathView, PathAttribute, PathPercent, PathLine, PathQuad, and PathCubic.

Property Documentation

closed : bool

This property holds whether the start and end of the path are identical.


defaultpathElements : list<PathElement>

This property holds the objects composing the path.

A path can contain the following path objects:

  • PathLine - a straight line to a given position.
  • PathQuad - a quadratic Bezier curve to a given position with a control point.
  • PathCubic - a cubic Bezier curve to a given position with two control points.
  • PathAttribute - an attribute at a given position in the path.
  • PathPercent - a way to spread out items along various segments of the path.


startX : real

These properties hold the starting position of the path.


startY : real

These properties hold the starting position of the path.