首页 > 代码库 > QPen

QPen

Help on class QPen in module PyQt5.QtGui:

class QPen(sip.simplewrapper)
 |  QPen()
 |  QPen(Qt.PenStyle)
 |  QPen(Union[QBrush, QColor, Qt.GlobalColor, QGradient], float, style: Qt.PenStyle = Qt.SolidLine, cap: Qt.PenCapStyle = Qt.SquareCap, join: Qt.PenJoinStyle = Qt.BevelJoin)
 |  QPen(Union[QPen, QColor, Qt.GlobalColor, QGradient])
 |  QPen(Any)
 |  
 |  Method resolution order:
 |      QPen
 |      sip.simplewrapper
 |      builtins.object
 |  
 |  Methods defined here:
 |  
 |  __eq__(self, value, /)
 |      Return self==value.
 |  
 |  __ge__(self, value, /)
 |      Return self>=value.
 |  
 |  __gt__(self, value, /)
 |      Return self>value.
 |  
 |  __le__(self, value, /)
 |      Return self<=value.
 |  
 |  __lt__(self, value, /)
 |      Return self<value.
 |  
 |  __ne__(self, value, /)
 |      Return self!=value.
 |  
 |  brush(...)
 |      brush(self) -> QBrush
 |  
 |  capStyle(...)
 |      capStyle(self) -> Qt.PenCapStyle
 |  
 |  color(...)
 |      color(self) -> QColor
 |  
 |  dashOffset(...)
 |      dashOffset(self) -> float
 |  
 |  dashPattern(...)
 |      dashPattern(self) -> List[float]
 |  
 |  isCosmetic(...)
 |      isCosmetic(self) -> bool
 |  
 |  isSolid(...)
 |      isSolid(self) -> bool
 |  
 |  joinStyle(...)
 |      joinStyle(self) -> Qt.PenJoinStyle
 |  
 |  miterLimit(...)
 |      miterLimit(self) -> float
 |  
 |  setBrush(...)
 |      setBrush(self, Union[QBrush, QColor, Qt.GlobalColor, QGradient])
 |  
 |  setCapStyle(...)
 |      setCapStyle(self, Qt.PenCapStyle)
 |  
 |  setColor(...)
 |      setColor(self, Union[QColor, Qt.GlobalColor, QGradient])
 |  
 |  setCosmetic(...)
 |      setCosmetic(self, bool)
 |  
 |  setDashOffset(...)
 |      setDashOffset(self, float)
 |  
 |  setDashPattern(...)
 |      setDashPattern(self, Iterable[float])
 |  
 |  setJoinStyle(...)
 |      setJoinStyle(self, Qt.PenJoinStyle)
 |  
 |  setMiterLimit(...)
 |      setMiterLimit(self, float)
 |  
 |  setStyle(...)
 |      setStyle(self, Qt.PenStyle)
 |  
 |  setWidth(...)
 |      setWidth(self, int)
 |  
 |  setWidthF(...)
 |      setWidthF(self, float)
 |  
 |  style(...)
 |      style(self) -> Qt.PenStyle
 |  
 |  swap(...)
 |      swap(self, QPen)
 |  
 |  width(...)
 |      width(self) -> int
 |  
 |  widthF(...)
 |      widthF(self) -> float
 |  
 |  ----------------------------------------------------------------------
 |  Data descriptors defined here:
 |  
 |  __weakref__
 |      list of weak references to the object (if defined)
 |  
 |  ----------------------------------------------------------------------
 |  Data and other attributes defined here:
 |  
 |  __hash__ = None
 |  
 |  ----------------------------------------------------------------------
 |  Methods inherited from sip.simplewrapper:
 |  
 |  __init__(self, /, *args, **kwargs)
 |      Initialize self.  See help(type(self)) for accurate signature.
 |  
 |  __new__(*args, **kwargs) from sip.wrappertype
 |      Create and return a new object.  See help(type) for accurate signature.
 |  
 |  ----------------------------------------------------------------------
 |  Data descriptors inherited from sip.simplewrapper:
 |  
 |  __dict__


QPen