• PySide 模块
  • PySide.QtGui
  • 内容表

    上一话题

    QPainterPath

    下一话题

    QPolygonF

    QPainterPath.Element

    概要

    函数

    详细描述

    QPainterPath.Element 类指定子路径的位置及类型。

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

    class PySide.QtGui.QPainterPath. 元素
    class PySide.QtGui.QPainterPath. 元素 ( 元素 )
    参数: 元素 PySide.QtGui.QPainterPath::Element
    PySide.QtGui.QPainterPath.Element. x
    PySide.QtGui.QPainterPath.Element. y
    PySide.QtGui.QPainterPath.Element. type
    PySide.QtGui.QPainterPath.Element. isCurveTo ( )
    返回类型: PySide.QtCore.bool

    Returns true if the element is a curve, otherwise returns false.

    另请参阅

    type QPainterPath.CurveToElement

    PySide.QtGui.QPainterPath.Element. isLineTo ( )
    返回类型: PySide.QtCore.bool

    Returns true if the element is a line, otherwise returns false.

    另请参阅

    type QPainterPath.LineToElement

    PySide.QtGui.QPainterPath.Element. isMoveTo ( )
    返回类型: PySide.QtCore.bool

    Returns true if the element is moving the current position, otherwise returns false.

    另请参阅

    type QPainterPath.MoveToElement

    PySide.QtGui.QPainterPath.Element. __ne__ ( e )
    参数: e PySide.QtGui.QPainterPath::Element
    返回类型: PySide.QtCore.bool

    Returns true if this element is not equal to other ;否则返回 false。

    另请参阅

    PySide.QtGui.QPainterPath::Element.operator==()

    PySide.QtGui.QPainterPath.Element. __eq__ ( e )
    参数: e PySide.QtGui.QPainterPath::Element
    返回类型: PySide.QtCore.bool

    Returns true if this element is equal to other ;否则返回 false。

    另请参阅

    PySide.QtGui.QPainterPath::Element.operator!=()