内容表

上一话题

QOpenGLVertexArrayObject.Binder

下一话题

QTextLayout.FormatRange

QPainterPath.Element

元素 类指定子路径的位置及类型。 更多

Inheritance diagram of PySide2.QtGui.QPainterPath.Element

概要

函数

详细描述

一旦 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() 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 组件。

另请参阅

QPainterPath

class 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!=()