Element¶

PyQt5.QtGui.QPainterPath.Element

Description¶

The Element class specifies the position and type of a subpath.

Once a QPainterPath object is constructed, subpaths like lines and curves can be added to the path (creating LineToElement and CurveToElement components).

The lines and curves stretch from the currentPosition() to the position passed as argument. The currentPosition() of the QPainterPath object is always the end position of the last subpath that was added (or the initial start point). The moveTo() function can be used to move the currentPosition() without adding a line or curve, creating a MoveToElement component.

See also

QPainterPath.

Attributes¶

type: ElementType

This variable holds the type of element.


x: float

This variable holds the x coordinate of the element’s position..

See also

operator QPointF().


y: float

This variable holds the y coordinate of the element’s position..

See also

operator QPointF().

Methods¶

__init__()

TODO


__init__(Element)

TODO


__eq__(Element) → bool

TODO


isCurveTo() → bool

TODO


isLineTo() → bool

TODO


isMoveTo() → bool

TODO


__ne__(Element) → bool

TODO