Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide6.QtGui »

Classe « QPen »

Informations générales

Héritage

builtins.object
    Object
        QPen

Définition

class QPen(Object):

Description [extrait de QPen.__doc__]

QPen(self) -> None
QPen(self, arg__1: PySide6.QtCore.Qt.PenStyle) -> None
QPen(self, brush: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap], width: float, s: PySide6.QtCore.Qt.PenStyle = PySide6.QtCore.Qt.PenStyle.SolidLine, c: PySide6.QtCore.Qt.PenCapStyle = PySide6.QtCore.Qt.PenCapStyle.SquareCap, j: PySide6.QtCore.Qt.PenJoinStyle = PySide6.QtCore.Qt.PenJoinStyle.BevelJoin) -> None
QPen(self, color: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int]) -> None
QPen(self, pen: Union[PySide6.QtGui.QPen, PySide6.QtCore.Qt.PenStyle, PySide6.QtGui.QColor]) -> None

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]

Liste des opérateurs

Signature de l'opérateur Description
__eq__(self, value) Return self==value. [extrait de __eq__.__doc__]
__ge__(self, value) Return self>=value. [extrait de __ge__.__doc__]
__gt__(self, value) Return self>value. [extrait de __gt__.__doc__]
__le__(self, value) Return self<=value. [extrait de __le__.__doc__]
__lshift__(self, arg__1: PySide6.QtCore.QDataStream) -> PySide6.QtCore.QDataStream __lshift__(self, arg__1: PySide6.QtCore.QDataStream) -> PySide6.QtCore.QDataStream [extrait de __lshift__.__doc__]
__lt__(self, value) Return self<value. [extrait de __lt__.__doc__]
__ne__(self, value) Return self!=value. [extrait de __ne__.__doc__]
__rlshift__(self, value) Return value<<self. [extrait de __rlshift__.__doc__]
__rrshift__(self, value) Return value>>self. [extrait de __rrshift__.__doc__]
__rshift__(self, arg__1: PySide6.QtCore.QDataStream) -> PySide6.QtCore.QDataStream __rshift__(self, arg__1: PySide6.QtCore.QDataStream) -> PySide6.QtCore.QDataStream [extrait de __rshift__.__doc__]

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__copy__() -> None __copy__() -> None [extrait de __copy__.__doc__]
__repr__(self) Return repr(self). [extrait de __repr__.__doc__]
brush(self) -> PySide6.QtGui.QBrush brush(self) -> PySide6.QtGui.QBrush [extrait de brush.__doc__]
capStyle(self) -> PySide6.QtCore.Qt.PenCapStyle capStyle(self) -> PySide6.QtCore.Qt.PenCapStyle [extrait de capStyle.__doc__]
color(self) -> PySide6.QtGui.QColor color(self) -> PySide6.QtGui.QColor [extrait de color.__doc__]
dashOffset(self) -> float dashOffset(self) -> float [extrait de dashOffset.__doc__]
dashPattern(self) -> List[float] dashPattern(self) -> List[float] [extrait de dashPattern.__doc__]
isCosmetic(self) -> bool isCosmetic(self) -> bool [extrait de isCosmetic.__doc__]
isSolid(self) -> bool isSolid(self) -> bool [extrait de isSolid.__doc__]
joinStyle(self) -> PySide6.QtCore.Qt.PenJoinStyle joinStyle(self) -> PySide6.QtCore.Qt.PenJoinStyle [extrait de joinStyle.__doc__]
miterLimit(self) -> float miterLimit(self) -> float [extrait de miterLimit.__doc__]
setBrush(self, brush: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap]) -> None setBrush(self, brush: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap]) -> None [extrait de setBrush.__doc__]
setCapStyle(self, pcs: PySide6.QtCore.Qt.PenCapStyle) -> None setCapStyle(self, pcs: PySide6.QtCore.Qt.PenCapStyle) -> None [extrait de setCapStyle.__doc__]
setColor(self, color: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int]) -> None setColor(self, color: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int]) -> None [extrait de setColor.__doc__]
setCosmetic(self, cosmetic: bool) -> None setCosmetic(self, cosmetic: bool) -> None [extrait de setCosmetic.__doc__]
setDashOffset(self, doffset: float) -> None setDashOffset(self, doffset: float) -> None [extrait de setDashOffset.__doc__]
setDashPattern(self, pattern: Sequence[float]) -> None setDashPattern(self, pattern: Sequence[float]) -> None [extrait de setDashPattern.__doc__]
setJoinStyle(self, pcs: PySide6.QtCore.Qt.PenJoinStyle) -> None setJoinStyle(self, pcs: PySide6.QtCore.Qt.PenJoinStyle) -> None [extrait de setJoinStyle.__doc__]
setMiterLimit(self, limit: float) -> None setMiterLimit(self, limit: float) -> None [extrait de setMiterLimit.__doc__]
setStyle(self, arg__1: PySide6.QtCore.Qt.PenStyle) -> None setStyle(self, arg__1: PySide6.QtCore.Qt.PenStyle) -> None [extrait de setStyle.__doc__]
setWidth(self, width: int) -> None setWidth(self, width: int) -> None [extrait de setWidth.__doc__]
setWidthF(self, width: float) -> None setWidthF(self, width: float) -> None [extrait de setWidthF.__doc__]
style(self) -> PySide6.QtCore.Qt.PenStyle style(self) -> PySide6.QtCore.Qt.PenStyle [extrait de style.__doc__]
swap(self, other: Union[PySide6.QtGui.QPen, PySide6.QtCore.Qt.PenStyle, PySide6.QtGui.QColor]) -> None swap(self, other: Union[PySide6.QtGui.QPen, PySide6.QtCore.Qt.PenStyle, PySide6.QtGui.QColor]) -> None [extrait de swap.__doc__]
width(self) -> int width(self) -> int [extrait de width.__doc__]
widthF(self) -> float widthF(self) -> float [extrait de widthF.__doc__]

Méthodes héritées de la classe Object

__delattr__, __getattribute__, __init_subclass__, __setattr__, __subclasshook__

Méthodes héritées de la classe object

__dir__, __format__, __hash__, __reduce__, __reduce_ex__, __sizeof__, __str__