元素类指定子路径的位置及类型。 更多 …
一旦
QPainterPathobject is constructed, subpaths like lines and curves can be added to the path (creatingLineToElementandCurveToElementcomponents).The lines and curves stretch from the
currentPosition()to the position passed as argument. ThecurrentPosition()的QPainterPathobject 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组件。另请参阅
PySide2.QtGui.QPainterPath.
元素
¶
PySide2.QtGui.QPainterPath.Element(Element)
元素
–
元素
PySide2.QtGui.QPainterPath.Element.
x
¶
PySide2.QtGui.QPainterPath.Element.
y
¶
PySide2.QtGui.QPainterPath.Element.
type
¶
PySide2.QtGui.QPainterPath.Element.
isCurveTo
(
)
¶
bool
返回
true
if the element is a curve, otherwise returns
false
.
另请参阅
type
CurveToElement
PySide2.QtGui.QPainterPath.Element.
isLineTo
(
)
¶
bool
返回
true
if the element is a line, otherwise returns
false
.
另请参阅
type
LineToElement
PySide2.QtGui.QPainterPath.Element.
isMoveTo
(
)
¶
bool
返回
true
if the element is moving the current position, otherwise returns
false
.
另请参阅
type
MoveToElement
PySide2.QtGui.QPainterPath.Element.
__ne__
(
e
)
¶
e
–
元素
bool
返回
true
if this element is not equal to
other
;否则返回
false
.
另请参阅
operator==()
PySide2.QtGui.QPainterPath.Element.
__eq__
(
e
)
¶
e
–
元素
bool
返回
true
if this element is equal to
other
;否则返回
false
.
另请参阅
operator!=()