The QPainterPath.Element class specifies the position and type of a subpath. 更多...
The QPainterPath.Element class specifies the position and type of a subpath.
一旦 QPainterPath object is constructed, subpaths like lines and curves can be added to the path (creating QPainterPath.LineToElement and QPainterPath.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 QPainterPath.MoveToElement 组件。
Returns true if the element is a curve, otherwise returns false.
另请参阅 type and QPainterPath.CurveToElement .
Returns true if the element is a line, otherwise returns false.
另请参阅 type and QPainterPath.LineToElement .
Returns true if the element is moving the current position, otherwise returns false.
另请参阅 type and QPainterPath.MoveToElement .
This variable holds the type of element.
另请参阅 isCurveTo (), isLineTo (),和 isMoveTo ().
This variable holds the x coordinate of the element's position.
另请参阅 operator QPointF ().
This variable holds the y coordinate of the element's position.
另请参阅 operator QPointF ().