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 « QPainter »

Informations générales

Héritage

builtins.object
    Object
        QPainter

Définition

class QPainter(Object):

Description [extrait de QPainter.__doc__]

QPainter(self) -> None
QPainter(self, arg__1: PySide6.QtGui.QPaintDevice) -> 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 attributs statiques

Nom de l'attribut Valeur
AntialiasingPySide6.QtGui.QPainter.RenderHint.Antialiasing
CompositionMode_ClearPySide6.QtGui.QPainter.CompositionMode.CompositionMode_Clear
CompositionMode_ColorBurnPySide6.QtGui.QPainter.CompositionMode.CompositionMode_ColorBurn
CompositionMode_ColorDodgePySide6.QtGui.QPainter.CompositionMode.CompositionMode_ColorDodge
CompositionMode_DarkenPySide6.QtGui.QPainter.CompositionMode.CompositionMode_Darken
CompositionMode_DestinationPySide6.QtGui.QPainter.CompositionMode.CompositionMode_Destination
CompositionMode_DestinationAtopPySide6.QtGui.QPainter.CompositionMode.CompositionMode_DestinationAtop
CompositionMode_DestinationInPySide6.QtGui.QPainter.CompositionMode.CompositionMode_DestinationIn
CompositionMode_DestinationOutPySide6.QtGui.QPainter.CompositionMode.CompositionMode_DestinationOut
CompositionMode_DestinationOverPySide6.QtGui.QPainter.CompositionMode.CompositionMode_DestinationOver
CompositionMode_DifferencePySide6.QtGui.QPainter.CompositionMode.CompositionMode_Difference
CompositionMode_ExclusionPySide6.QtGui.QPainter.CompositionMode.CompositionMode_Exclusion
CompositionMode_HardLightPySide6.QtGui.QPainter.CompositionMode.CompositionMode_HardLight
CompositionMode_LightenPySide6.QtGui.QPainter.CompositionMode.CompositionMode_Lighten
CompositionMode_MultiplyPySide6.QtGui.QPainter.CompositionMode.CompositionMode_Multiply
CompositionMode_OverlayPySide6.QtGui.QPainter.CompositionMode.CompositionMode_Overlay
CompositionMode_PlusPySide6.QtGui.QPainter.CompositionMode.CompositionMode_Plus
CompositionMode_ScreenPySide6.QtGui.QPainter.CompositionMode.CompositionMode_Screen
CompositionMode_SoftLightPySide6.QtGui.QPainter.CompositionMode.CompositionMode_SoftLight
CompositionMode_SourcePySide6.QtGui.QPainter.CompositionMode.CompositionMode_Source
CompositionMode_SourceAtopPySide6.QtGui.QPainter.CompositionMode.CompositionMode_SourceAtop
CompositionMode_SourceInPySide6.QtGui.QPainter.CompositionMode.CompositionMode_SourceIn
CompositionMode_SourceOutPySide6.QtGui.QPainter.CompositionMode.CompositionMode_SourceOut
CompositionMode_SourceOverPySide6.QtGui.QPainter.CompositionMode.CompositionMode_SourceOver
CompositionMode_XorPySide6.QtGui.QPainter.CompositionMode.CompositionMode_Xor
LosslessImageRenderingPySide6.QtGui.QPainter.RenderHint.LosslessImageRendering
OpaqueHintPySide6.QtGui.QPainter.PixmapFragmentHint.OpaqueHint
RasterOp_ClearDestinationPySide6.QtGui.QPainter.CompositionMode.RasterOp_ClearDestination
RasterOp_NotDestinationPySide6.QtGui.QPainter.CompositionMode.RasterOp_NotDestination
RasterOp_NotSourcePySide6.QtGui.QPainter.CompositionMode.RasterOp_NotSource
RasterOp_NotSourceAndDestinationPySide6.QtGui.QPainter.CompositionMode.RasterOp_NotSourceAndDestination
RasterOp_NotSourceAndNotDestinationPySide6.QtGui.QPainter.CompositionMode.RasterOp_NotSourceAndNotDestination
RasterOp_NotSourceOrDestinationPySide6.QtGui.QPainter.CompositionMode.RasterOp_NotSourceOrDestination
RasterOp_NotSourceOrNotDestinationPySide6.QtGui.QPainter.CompositionMode.RasterOp_NotSourceOrNotDestination
RasterOp_NotSourceXorDestinationPySide6.QtGui.QPainter.CompositionMode.RasterOp_NotSourceXorDestination
RasterOp_SetDestinationPySide6.QtGui.QPainter.CompositionMode.RasterOp_SetDestination
RasterOp_SourceAndDestinationPySide6.QtGui.QPainter.CompositionMode.RasterOp_SourceAndDestination
RasterOp_SourceAndNotDestinationPySide6.QtGui.QPainter.CompositionMode.RasterOp_SourceAndNotDestination
RasterOp_SourceOrDestinationPySide6.QtGui.QPainter.CompositionMode.RasterOp_SourceOrDestination
RasterOp_SourceOrNotDestinationPySide6.QtGui.QPainter.CompositionMode.RasterOp_SourceOrNotDestination
RasterOp_SourceXorDestinationPySide6.QtGui.QPainter.CompositionMode.RasterOp_SourceXorDestination
SmoothPixmapTransformPySide6.QtGui.QPainter.RenderHint.SmoothPixmapTransform
TextAntialiasingPySide6.QtGui.QPainter.RenderHint.TextAntialiasing
VerticalSubpixelPositioningPySide6.QtGui.QPainter.RenderHint.VerticalSubpixelPositioning

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

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
background(self) -> PySide6.QtGui.QBrush background(self) -> PySide6.QtGui.QBrush [extrait de background.__doc__]
backgroundMode(self) -> PySide6.QtCore.Qt.BGMode backgroundMode(self) -> PySide6.QtCore.Qt.BGMode [extrait de backgroundMode.__doc__]
begin(self, arg__1: PySide6.QtGui.QPaintDevice) -> bool begin(self, arg__1: PySide6.QtGui.QPaintDevice) -> bool [extrait de begin.__doc__]
beginNativePainting(self) -> None beginNativePainting(self) -> None [extrait de beginNativePainting.__doc__]
boundingRect boundingRect(self, rect: PySide6.QtCore.QRect, flags: int, text: str) -> PySide6.QtCore.QRect [extrait de boundingRect.__doc__]
brush(self) -> PySide6.QtGui.QBrush brush(self) -> PySide6.QtGui.QBrush [extrait de brush.__doc__]
brushOrigin(self) -> PySide6.QtCore.QPoint brushOrigin(self) -> PySide6.QtCore.QPoint [extrait de brushOrigin.__doc__]
clipBoundingRect(self) -> PySide6.QtCore.QRectF clipBoundingRect(self) -> PySide6.QtCore.QRectF [extrait de clipBoundingRect.__doc__]
clipPath(self) -> PySide6.QtGui.QPainterPath clipPath(self) -> PySide6.QtGui.QPainterPath [extrait de clipPath.__doc__]
clipRegion(self) -> PySide6.QtGui.QRegion clipRegion(self) -> PySide6.QtGui.QRegion [extrait de clipRegion.__doc__]
combinedTransform(self) -> PySide6.QtGui.QTransform combinedTransform(self) -> PySide6.QtGui.QTransform [extrait de combinedTransform.__doc__]
CompositionMode
compositionMode(self) -> PySide6.QtGui.QPainter.CompositionMode compositionMode(self) -> PySide6.QtGui.QPainter.CompositionMode [extrait de compositionMode.__doc__]
device(self) -> PySide6.QtGui.QPaintDevice device(self) -> PySide6.QtGui.QPaintDevice [extrait de device.__doc__]
deviceTransform(self) -> PySide6.QtGui.QTransform deviceTransform(self) -> PySide6.QtGui.QTransform [extrait de deviceTransform.__doc__]
drawArc drawArc(self, arg__1: PySide6.QtCore.QRect, a: int, alen: int) -> None [extrait de drawArc.__doc__]
drawChord drawChord(self, arg__1: PySide6.QtCore.QRect, a: int, alen: int) -> None [extrait de drawChord.__doc__]
drawConvexPolygon drawConvexPolygon(self, arg__1: Sequence[PySide6.QtCore.QPointF]) -> None [extrait de drawConvexPolygon.__doc__]
drawEllipse drawEllipse(self, center: PySide6.QtCore.QPoint, rx: int, ry: int) -> None [extrait de drawEllipse.__doc__]
drawGlyphRun(self, position: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element], glyphRun: PySide6.QtGui.QGlyphRun) -> None drawGlyphRun(self, position: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element], glyphRun: PySide6.QtGui.QGlyphRun) -> None [extrait de drawGlyphRun.__doc__]
drawImage drawImage(self, p: PySide6.QtCore.QPoint, image: Union[PySide6.QtGui.QImage, str]) -> None [extrait de drawImage.__doc__]
drawLine drawLine(self, line: PySide6.QtCore.QLine) -> None [extrait de drawLine.__doc__]
drawLines drawLines(self, lines: Sequence[PySide6.QtCore.QLineF]) -> None [extrait de drawLines.__doc__]
drawPath(self, path: PySide6.QtGui.QPainterPath) -> None drawPath(self, path: PySide6.QtGui.QPainterPath) -> None [extrait de drawPath.__doc__]
drawPicture drawPicture(self, p: PySide6.QtCore.QPoint, picture: Union[PySide6.QtGui.QPicture, int]) -> None [extrait de drawPicture.__doc__]
drawPie drawPie(self, arg__1: PySide6.QtCore.QRect, a: int, alen: int) -> None [extrait de drawPie.__doc__]
drawPixmap drawPixmap(self, p: PySide6.QtCore.QPoint, pm: Union[PySide6.QtGui.QPixmap, PySide6.QtGui.QImage, str]) -> None [extrait de drawPixmap.__doc__]
drawPixmapFragments(self, fragments: PySide6.QtGui.QPainter.PixmapFragment, fragmentCount: int, pixmap: Union[PySide6.QtGui.QPixmap, PySide6.QtGui.QImage, str], hints: PySide6.QtGui.QPainter.PixmapFragmentHints = Default(QPainter.PixmapFragmentHints)) -> None drawPixmapFragments(self, fragments: PySide6.QtGui.QPainter.PixmapFragment, fragmentCount: int, pixmap: Union[PySide6.QtGui.QPixmap, PySide6.QtGui.QImage, str], hints: PySide6.QtGui.QPainter.PixmapFragmentHints = Default(QPainter.PixmapFragmentHints)) -> None [extrait de drawPixmapFragments.__doc__]
drawPoint drawPoint(self, p: PySide6.QtCore.QPoint) -> None [extrait de drawPoint.__doc__]
drawPoints drawPoints(self, arg__1: Sequence[PySide6.QtCore.QPointF]) -> None [extrait de drawPoints.__doc__]
drawPointsNp(self, x: shibokensupport.signature.mapping.ArrayLikeVariable, y: shibokensupport.signature.mapping.ArrayLikeVariable) -> None drawPointsNp(self, x: shibokensupport.signature.mapping.ArrayLikeVariable, y: shibokensupport.signature.mapping.ArrayLikeVariable) -> None [extrait de drawPointsNp.__doc__]
drawPolygon drawPolygon(self, arg__1: Sequence[PySide6.QtCore.QPointF], arg__2: PySide6.QtCore.Qt.FillRule) -> None [extrait de drawPolygon.__doc__]
drawPolyline drawPolyline(self, arg__1: Sequence[PySide6.QtCore.QPointF]) -> None [extrait de drawPolyline.__doc__]
drawRect drawRect(self, rect: PySide6.QtCore.QRect) -> None [extrait de drawRect.__doc__]
drawRects drawRects(self, rectangles: Sequence[PySide6.QtCore.QRectF]) -> None [extrait de drawRects.__doc__]
drawRoundedRect drawRoundedRect(self, rect: PySide6.QtCore.QRect, xRadius: float, yRadius: float, mode: PySide6.QtCore.Qt.SizeMode = PySide6.QtCore.Qt.SizeMode.AbsoluteSize) -> None [extrait de drawRoundedRect.__doc__]
drawStaticText drawStaticText(self, left: int, top: int, staticText: PySide6.QtGui.QStaticText) -> None [extrait de drawStaticText.__doc__]
drawText drawText(self, p: PySide6.QtCore.QPoint, s: str) -> None [extrait de drawText.__doc__]
drawTextItem drawTextItem(self, p: PySide6.QtCore.QPoint, ti: PySide6.QtGui.QTextItem) -> None [extrait de drawTextItem.__doc__]
drawTiledPixmap drawTiledPixmap(self, arg__1: PySide6.QtCore.QRect, arg__2: Union[PySide6.QtGui.QPixmap, PySide6.QtGui.QImage, str], pos: PySide6.QtCore.QPoint = Default(QPoint)) -> None [extrait de drawTiledPixmap.__doc__]
end(self) -> bool end(self) -> bool [extrait de end.__doc__]
endNativePainting(self) -> None endNativePainting(self) -> None [extrait de endNativePainting.__doc__]
eraseRect eraseRect(self, arg__1: PySide6.QtCore.QRect) -> None [extrait de eraseRect.__doc__]
fillPath(self, path: PySide6.QtGui.QPainterPath, 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 fillPath(self, path: PySide6.QtGui.QPainterPath, 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 fillPath.__doc__]
fillRect fillRect(self, arg__1: PySide6.QtCore.QRect, arg__2: 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 fillRect.__doc__]
font(self) -> PySide6.QtGui.QFont font(self) -> PySide6.QtGui.QFont [extrait de font.__doc__]
fontInfo(self) -> PySide6.QtGui.QFontInfo fontInfo(self) -> PySide6.QtGui.QFontInfo [extrait de fontInfo.__doc__]
fontMetrics(self) -> PySide6.QtGui.QFontMetrics fontMetrics(self) -> PySide6.QtGui.QFontMetrics [extrait de fontMetrics.__doc__]
hasClipping(self) -> bool hasClipping(self) -> bool [extrait de hasClipping.__doc__]
isActive(self) -> bool isActive(self) -> bool [extrait de isActive.__doc__]
layoutDirection(self) -> PySide6.QtCore.Qt.LayoutDirection layoutDirection(self) -> PySide6.QtCore.Qt.LayoutDirection [extrait de layoutDirection.__doc__]
opacity(self) -> float opacity(self) -> float [extrait de opacity.__doc__]
paintEngine(self) -> PySide6.QtGui.QPaintEngine paintEngine(self) -> PySide6.QtGui.QPaintEngine [extrait de paintEngine.__doc__]
pen(self) -> PySide6.QtGui.QPen pen(self) -> PySide6.QtGui.QPen [extrait de pen.__doc__]
PixmapFragment PixmapFragment(self) -> None [extrait de PixmapFragment.__doc__]
PixmapFragmentHint
PixmapFragmentHints
RenderHint
RenderHints
renderHints(self) -> PySide6.QtGui.QPainter.RenderHints renderHints(self) -> PySide6.QtGui.QPainter.RenderHints [extrait de renderHints.__doc__]
resetTransform(self) -> None resetTransform(self) -> None [extrait de resetTransform.__doc__]
restore(self) -> None restore(self) -> None [extrait de restore.__doc__]
rotate(self, a: float) -> None rotate(self, a: float) -> None [extrait de rotate.__doc__]
save(self) -> None save(self) -> None [extrait de save.__doc__]
scale(self, sx: float, sy: float) -> None scale(self, sx: float, sy: float) -> None [extrait de scale.__doc__]
setBackground(self, bg: 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 setBackground(self, bg: 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 setBackground.__doc__]
setBackgroundMode(self, mode: PySide6.QtCore.Qt.BGMode) -> None setBackgroundMode(self, mode: PySide6.QtCore.Qt.BGMode) -> None [extrait de setBackgroundMode.__doc__]
setBrush 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__]
setBrushOrigin setBrushOrigin(self, arg__1: PySide6.QtCore.QPoint) -> None [extrait de setBrushOrigin.__doc__]
setClipPath(self, path: PySide6.QtGui.QPainterPath, op: PySide6.QtCore.Qt.ClipOperation = PySide6.QtCore.Qt.ClipOperation.ReplaceClip) -> None setClipPath(self, path: PySide6.QtGui.QPainterPath, op: PySide6.QtCore.Qt.ClipOperation = PySide6.QtCore.Qt.ClipOperation.ReplaceClip) -> None [extrait de setClipPath.__doc__]
setClipping(self, enable: bool) -> None setClipping(self, enable: bool) -> None [extrait de setClipping.__doc__]
setClipRect setClipRect(self, arg__1: PySide6.QtCore.QRect, op: PySide6.QtCore.Qt.ClipOperation = PySide6.QtCore.Qt.ClipOperation.ReplaceClip) -> None [extrait de setClipRect.__doc__]
setClipRegion(self, arg__1: Union[PySide6.QtGui.QRegion, PySide6.QtGui.QBitmap, PySide6.QtGui.QPolygon, PySide6.QtCore.QRect], op: PySide6.QtCore.Qt.ClipOperation = PySide6.QtCore.Qt.ClipOperation.ReplaceClip) -> None setClipRegion(self, arg__1: Union[PySide6.QtGui.QRegion, PySide6.QtGui.QBitmap, PySide6.QtGui.QPolygon, PySide6.QtCore.QRect], op: PySide6.QtCore.Qt.ClipOperation = PySide6.QtCore.Qt.ClipOperation.ReplaceClip) -> None [extrait de setClipRegion.__doc__]
setCompositionMode(self, mode: PySide6.QtGui.QPainter.CompositionMode) -> None setCompositionMode(self, mode: PySide6.QtGui.QPainter.CompositionMode) -> None [extrait de setCompositionMode.__doc__]
setFont(self, f: Union[PySide6.QtGui.QFont, str, Sequence[str]]) -> None setFont(self, f: Union[PySide6.QtGui.QFont, str, Sequence[str]]) -> None [extrait de setFont.__doc__]
setLayoutDirection(self, direction: PySide6.QtCore.Qt.LayoutDirection) -> None setLayoutDirection(self, direction: PySide6.QtCore.Qt.LayoutDirection) -> None [extrait de setLayoutDirection.__doc__]
setOpacity(self, opacity: float) -> None setOpacity(self, opacity: float) -> None [extrait de setOpacity.__doc__]
setPen setPen(self, color: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int]) -> None [extrait de setPen.__doc__]
setRenderHint(self, hint: PySide6.QtGui.QPainter.RenderHint, on: bool = True) -> None setRenderHint(self, hint: PySide6.QtGui.QPainter.RenderHint, on: bool = True) -> None [extrait de setRenderHint.__doc__]
setRenderHints(self, hints: PySide6.QtGui.QPainter.RenderHints, on: bool = True) -> None setRenderHints(self, hints: PySide6.QtGui.QPainter.RenderHints, on: bool = True) -> None [extrait de setRenderHints.__doc__]
setTransform(self, transform: PySide6.QtGui.QTransform, combine: bool = False) -> None setTransform(self, transform: PySide6.QtGui.QTransform, combine: bool = False) -> None [extrait de setTransform.__doc__]
setViewport setViewport(self, viewport: PySide6.QtCore.QRect) -> None [extrait de setViewport.__doc__]
setViewTransformEnabled(self, enable: bool) -> None setViewTransformEnabled(self, enable: bool) -> None [extrait de setViewTransformEnabled.__doc__]
setWindow setWindow(self, window: PySide6.QtCore.QRect) -> None [extrait de setWindow.__doc__]
setWorldMatrixEnabled(self, enabled: bool) -> None setWorldMatrixEnabled(self, enabled: bool) -> None [extrait de setWorldMatrixEnabled.__doc__]
setWorldTransform(self, matrix: PySide6.QtGui.QTransform, combine: bool = False) -> None setWorldTransform(self, matrix: PySide6.QtGui.QTransform, combine: bool = False) -> None [extrait de setWorldTransform.__doc__]
shear(self, sh: float, sv: float) -> None shear(self, sh: float, sv: float) -> None [extrait de shear.__doc__]
strokePath(self, path: PySide6.QtGui.QPainterPath, pen: Union[PySide6.QtGui.QPen, PySide6.QtCore.Qt.PenStyle, PySide6.QtGui.QColor]) -> None strokePath(self, path: PySide6.QtGui.QPainterPath, pen: Union[PySide6.QtGui.QPen, PySide6.QtCore.Qt.PenStyle, PySide6.QtGui.QColor]) -> None [extrait de strokePath.__doc__]
testRenderHint(self, hint: PySide6.QtGui.QPainter.RenderHint) -> bool testRenderHint(self, hint: PySide6.QtGui.QPainter.RenderHint) -> bool [extrait de testRenderHint.__doc__]
transform(self) -> PySide6.QtGui.QTransform transform(self) -> PySide6.QtGui.QTransform [extrait de transform.__doc__]
translate translate(self, dx: float, dy: float) -> None [extrait de translate.__doc__]
viewport(self) -> PySide6.QtCore.QRect viewport(self) -> PySide6.QtCore.QRect [extrait de viewport.__doc__]
viewTransformEnabled(self) -> bool viewTransformEnabled(self) -> bool [extrait de viewTransformEnabled.__doc__]
window(self) -> PySide6.QtCore.QRect window(self) -> PySide6.QtCore.QRect [extrait de window.__doc__]
worldMatrixEnabled(self) -> bool worldMatrixEnabled(self) -> bool [extrait de worldMatrixEnabled.__doc__]
worldTransform(self) -> PySide6.QtGui.QTransform worldTransform(self) -> PySide6.QtGui.QTransform [extrait de worldTransform.__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__, __repr__, __sizeof__, __str__