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
Attributes¶
- type: ElementType
This variable holds the type of element.
See also
- 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().