Element¶
The
Element
class specifies the position and type of a subpath. More…
Synopsis¶
Functions¶
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
- class PySide2.QtGui.QPainterPath.Element¶
PySide2.QtGui.QPainterPath.Element(Element)
- Parameters:
Element –
PySide2.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 returnsfalse
.See also
type
CurveToElement
- PySide2.QtGui.QPainterPath.Element.isLineTo()¶
- Return type:
bool
Returns
true
if the element is a line, otherwise returnsfalse
.See also
type
LineToElement
- PySide2.QtGui.QPainterPath.Element.isMoveTo()¶
- Return type:
bool
Returns
true
if the element is moving the current position, otherwise returnsfalse
.See also
type
MoveToElement
- PySide2.QtGui.QPainterPath.Element.__ne__(e)¶
- Parameters:
- Return type:
bool
Returns
true
if this element is not equal toother
; otherwise returnsfalse
.See also
operator==()
- PySide2.QtGui.QPainterPath.Element.__eq__(e)¶
- Parameters:
- Return type:
bool
Returns
true
if this element is equal toother
; otherwise returnsfalse
.See also
operator!=()
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.