Element

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

Inheritance diagram of PySide2.QtGui.QPainterPath.Element

Synopsis

Functions

Detailed Description

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

class PySide2.QtGui.QPainterPath.Element

PySide2.QtGui.QPainterPath.Element(Element)

Parameters:

ElementPySide2.QtGui.QPainterPath.Element

PySide2.QtGui.QPainterPath.Element.x
PySide2.QtGui.QPainterPath.Element.y
PySide2.QtGui.QPainterPath.Element.type
PySide2.QtGui.QPainterPath.Element.isCurveTo()
Return type:

bool

Returns true if the element is a curve, otherwise returns false .

See also

type CurveToElement

PySide2.QtGui.QPainterPath.Element.isLineTo()
Return type:

bool

Returns true if the element is a line, otherwise returns false .

See also

type LineToElement

PySide2.QtGui.QPainterPath.Element.isMoveTo()
Return type:

bool

Returns true if the element is moving the current position, otherwise returns false .

See also

type MoveToElement

PySide2.QtGui.QPainterPath.Element.__ne__(e)
Parameters:

ePySide2.QtGui.QPainterPath.Element

Return type:

bool

Returns true if this element is not equal to other ; otherwise returns false .

See also

operator==()

PySide2.QtGui.QPainterPath.Element.__eq__(e)
Parameters:

ePySide2.QtGui.QPainterPath.Element

Return type:

bool

Returns true if this element is equal to other ; otherwise returns false .

See also

operator!=()