- class Element¶
The
Element
class specifies the position and type of a subpath. More…Synopsis¶
Methods¶
def
isCurveTo()
def
isLineTo()
def
isMoveTo()
def
__ne__()
def
__eq__()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
Once a
QPainterPath
object is constructed, subpaths like lines and curves can be added to the path (creatingLineToElement
andCurveToElement
components).The lines and curves stretch from the
currentPosition()
to the position passed as argument. ThecurrentPosition()
of theQPainterPath
object is always the end position of the last subpath that was added (or the initial start point). ThemoveTo()
function can be used to move thecurrentPosition()
without adding a line or curve, creating aMoveToElement
component.See also
- PySide6.QtGui.QPainterPath.Element.x¶
- PySide6.QtGui.QPainterPath.Element.y¶
- PySide6.QtGui.QPainterPath.Element.type¶
- isCurveTo()¶
- Return type:
bool
Returns
true
if the element is a curve, otherwise returnsfalse
.See also
- isLineTo()¶
- Return type:
bool
Returns
true
if the element is a line, otherwise returnsfalse
.See also
- isMoveTo()¶
- Return type:
bool
Returns
true
if the element is moving the current position, otherwise returnsfalse
.See also
- __ne__(e)¶
- Parameters:
e –
Element
- Return type:
bool
Returns
true
if this element is not equal toother
; otherwise returnsfalse
.See also
operator==()
- __eq__(e)¶
- Parameters:
e –
Element
- Return type:
bool
Returns
true
if this element is equal toother
; otherwise returnsfalse
.See also
operator!=()