Skip to content

PythonQt.QtGui.QStylePainter · declarations 001

Back to PythonQt.QtGui.QStylePainter

background

background() -> Any

X.background() -> PythonQt.QtGui.QBrush

backgroundMode

backgroundMode() -> Any

X.backgroundMode()

begin

begin(pd: Any, w: Any) -> bool

X.begin(pd, w) -> bool

Supplemental documentation: Qt 5 reference:

bool QStylePainter::begin(QWidget *widget)

Begin painting operations on the specified widget. Returns true if the painter is ready to use; otherwise returns false.

This is automatically called by the constructor that takes a QWidget.

bool QStylePainter::begin(QPaintDevice *pd, QWidget *widget)

This is an overloaded function.

Begin painting operations on paint device pd as if it was widget.

This is automatically called by the constructor that takes a QPaintDevice and a QWidget.

Upstream PySide2 reference signatures (binding differences may apply):

begin(self, arg__1: PySide2.QtGui.QPaintDevice) -> bool
begin(self, pd: PySide2.QtGui.QPaintDevice, w: PySide2.QtWidgets.QWidget) -> bool
begin(self, w: PySide2.QtWidgets.QWidget) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qstylepainter.html#begin

beginNativePainting

beginNativePainting() -> Any

X.beginNativePainting()

boundingRect

boundingRect(x: Any, y: Any, w: Any, h: Any, arg4: flags, text: Any) -> Any

X.boundingRect(x, y, w, h, flags, text) -> PythonQt.QtCore.QRect

brushOrigin

brushOrigin() -> Any

X.brushOrigin() -> PythonQt.QtCore.QPoint

clipBoundingRect

clipBoundingRect() -> Any

X.clipBoundingRect() -> PythonQt.QtCore.QRectF

clipRegion

clipRegion() -> Any

X.clipRegion() -> PythonQt.QtGui.QRegion

combinedMatrix

combinedMatrix() -> Any

X.combinedMatrix() -> PythonQt.QtGui.QMatrix

combinedTransform

combinedTransform() -> Any

X.combinedTransform() -> PythonQt.QtGui.QTransform

compositionMode

compositionMode() -> Any

X.compositionMode()

device

device() -> Any

X.device() -> PythonQt.QtGui.QPaintDevice

deviceMatrix

deviceMatrix() -> Any

X.deviceMatrix() -> PythonQt.QtGui.QMatrix

deviceTransform

deviceTransform() -> Any

X.deviceTransform() -> PythonQt.QtGui.QTransform

drawArc

drawArc(x: Any, y: Any, w: Any, h: Any, a: Any, alen: Any) -> Any

X.drawArc(x, y, w, h, a, alen)

drawChord

drawChord(x: Any, y: Any, w: Any, h: Any, a: Any, alen: Any) -> Any

X.drawChord(x, y, w, h, a, alen)

drawComplexControl

drawComplexControl(cc: Any, opt: Any) -> None

X.drawComplexControl(cc, opt)

Supplemental documentation: Qt 5 reference:

void QStylePainter::drawComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex \&option)

Use the widget's style to draw a complex control cc specified by the QStyleOptionComplex option.

See also QStyle::drawComplexControl().

Upstream PySide2 reference signatures (binding differences may apply):

drawComplexControl(self, cc: PySide2.QtWidgets.QStyle.ComplexControl, opt: PySide2.QtWidgets.QStyleOptionComplex) -> None

Source: https://doc.qt.io/archives/qt-5.15/qstylepainter.html#drawComplexControl

drawControl

drawControl(ce: Any, opt: Any) -> None

X.drawControl(ce, opt)

Supplemental documentation: Qt 5 reference:

void QStylePainter::drawControl(QStyle::ControlElement ce, const QStyleOption \&option)

Use the widget's style to draw a control element ce specified by QStyleOption option.

See also QStyle::drawControl().

Upstream PySide2 reference signatures (binding differences may apply):

drawControl(self, ce: PySide2.QtWidgets.QStyle.ControlElement, opt: PySide2.QtWidgets.QStyleOption) -> None

Source: https://doc.qt.io/archives/qt-5.15/qstylepainter.html#drawControl

drawConvexPolygon

drawConvexPolygon(polygon: Any) -> Any

X.drawConvexPolygon(polygon)

drawEllipse

drawEllipse(x: Any, y: Any, w: Any, h: Any) -> Any

X.drawEllipse(x, y, w, h)

drawGlyphRun

drawGlyphRun(position: Any, glyphRun: Any) -> Any

X.drawGlyphRun(position, glyphRun)

drawImage

drawImage(x: Any, y: Any, image: Any, sx: Any, sy: Any, sw: Any, sh: Any, arg7: flags) -> Any

X.drawImage(x, y, image, sx, sy, sw, sh, flags)

drawItemPixmap

drawItemPixmap(r: Any, arg1: flags, pixmap: Any) -> None

X.drawItemPixmap(r, flags, pixmap)

Supplemental documentation: Qt 5 reference:

void QStylePainter::drawItemPixmap(const QRect \&rect, int flags, const QPixmap \&pixmap)

Draws the pixmap in rectangle rect. The pixmap is aligned according to flags.

See also QStyle::drawItemPixmap() and Qt::Alignment.

Upstream PySide2 reference signatures (binding differences may apply):

drawItemPixmap(self, r: PySide2.QtCore.QRect, flags: int, pixmap: PySide2.QtGui.QPixmap) -> None

Source: https://doc.qt.io/archives/qt-5.15/qstylepainter.html#drawItemPixmap

drawItemText

drawItemText(r: Any, arg1: flags, pal: Any, enabled: bool, text: str, textRole: Any) -> None

X.drawItemText(r, flags, pal, enabled, text, textRole)

Supplemental documentation: Qt 5 reference:

void QStylePainter::drawItemText(const QRect \&rect, int flags, const QPalette \&pal, bool enabled, const QString \&text, QPalette::ColorRole textRole \= QPalette::NoRole)

Draws the text in rectangle rect and palette pal. The text is aligned and wrapped according to flags.

The pen color is specified with textRole. The enabled bool indicates whether or not the item is enabled; when reimplementing this bool should influence how the item is drawn.

See also QStyle::drawItemText() and Qt::Alignment.

Upstream PySide2 reference signatures (binding differences may apply):

drawItemText(self, r: PySide2.QtCore.QRect, flags: int, pal: PySide2.QtGui.QPalette, enabled: bool, text: str, textRole: PySide2.QtGui.QPalette.ColorRole=...) -> None

Source: https://doc.qt.io/archives/qt-5.15/qstylepainter.html#drawItemText

drawLine

drawLine(x1: Any, y1: Any, x2: Any, y2: Any) -> Any

X.drawLine(x1, y1, x2, y2)

drawLines

drawLines(lines: Any) -> Any

X.drawLines(lines)

drawPath

drawPath(path: Any) -> Any

X.drawPath(path)

drawPicture

drawPicture(x: Any, y: Any, picture: Any) -> Any

X.drawPicture(x, y, picture)

drawPie

drawPie(x: Any, y: Any, w: Any, h: Any, a: Any, alen: Any) -> Any

X.drawPie(x, y, w, h, a, alen)

drawPixmap

drawPixmap(x: Any, y: Any, w: Any, h: Any, pm: Any, sx: Any, sy: Any, sw: Any, sh: Any) -> Any

X.drawPixmap(x, y, w, h, pm, sx, sy, sw, sh)

drawPixmapFragments

drawPixmapFragments(fragments: Any, fragmentCount: Any, pixmap: Any, hints: Any) -> Any

X.drawPixmapFragments(fragments, fragmentCount, pixmap, hints)

drawPoint

drawPoint(x: Any, y: Any) -> Any

X.drawPoint(x, y)

drawPoints

drawPoints(points: Any) -> Any

X.drawPoints(points)

drawPolygon

drawPolygon(polygon: Any, fillRule: Any) -> Any

X.drawPolygon(polygon, fillRule)

drawPolyline

drawPolyline(polygon: Any) -> Any

X.drawPolyline(polygon)

drawPrimitive

drawPrimitive(pe: Any, opt: Any) -> None

X.drawPrimitive(pe, opt)

Supplemental documentation: Qt 5 reference:

void QStylePainter::drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption \&option)

Use the widget's style to draw a primitive element pe specified by QStyleOption option.

See also QStyle::drawPrimitive().

Upstream PySide2 reference signatures (binding differences may apply):

drawPrimitive(self, pe: PySide2.QtWidgets.QStyle.PrimitiveElement, opt: PySide2.QtWidgets.QStyleOption) -> None

Source: https://doc.qt.io/archives/qt-5.15/qstylepainter.html#drawPrimitive

drawRect

drawRect(x1: Any, y1: Any, w: Any, h: Any) -> Any

X.drawRect(x1, y1, w, h)

drawRects

drawRects(rectangles: Any) -> Any

X.drawRects(rectangles)

drawRoundRect

drawRoundRect(x: Any, y: Any, w: Any, h: Any, arg__5: Any, arg__6: Any) -> Any

X.drawRoundRect(x, y, w, h, arg__5, arg__6)

drawRoundedRect

drawRoundedRect(x: Any, y: Any, w: Any, h: Any, xRadius: Any, yRadius: Any, mode: Any) -> Any

X.drawRoundedRect(x, y, w, h, xRadius, yRadius, mode)