Skip to content

PythonQt.Qt.QPaintEngine

QPaintEngine

PythonQtInstanceWrapper object

Native bases: PythonQtInstanceWrapper

Supplemental documentation: Qt 5 reference:

Detailed Description

Qt provides several premade implementations of QPaintEngine for the different painter backends we support. The primary paint engine provided is the raster paint engine, which contains a software rasterizer which supports the full feature set on all supported platforms. This is the default for painting on QWidget-based classes in e.g. on Windows, X11 and macOS, it is the backend for painting on QImage and it is used as a fallback for paint engines that do not support a certain capability. In addition we provide QPaintEngine implementations for OpenGL (accessible through QOpenGLWidget) and printing (which allows using QPainter to draw on a QPrinter object).

If one wants to use QPainter to draw to a different backend, one must subclass QPaintEngine and reimplement all its virtual functions. The QPaintEngine implementation is then made available by subclassing QPaintDevice and reimplementing the virtual function QPaintDevice::paintEngine().

QPaintEngine is created and owned by the QPaintDevice that created it.

Source: https://doc.qt.io/archives/qt-5.15/qpaintengine.html

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
AllDirty attribute Any (shared captured text)
AllFeatures attribute Any (shared captured text)
AlphaBlend attribute Any (shared captured text)
Antialiasing attribute Any (shared captured text)
BlendModes attribute Any (shared captured text)
Blitter attribute Any (shared captured text)
BrushStroke attribute Any (shared captured text)
ConicalGradientFill attribute Any (shared captured text)
ConstantOpacity attribute Any (shared captured text)
ConvexMode attribute Any (shared captured text)
CoreGraphics attribute Any (shared captured text)
Direct2D attribute Any (shared captured text)
Direct3D attribute Any (shared captured text)
DirtyBackground attribute Any (shared captured text)
DirtyBackgroundMode attribute Any (shared captured text)
DirtyBrush attribute Any (shared captured text)
DirtyBrushOrigin attribute Any (shared captured text)
DirtyClipEnabled attribute Any (shared captured text)
DirtyClipPath attribute Any (shared captured text)
DirtyClipRegion attribute Any (shared captured text)
DirtyCompositionMode attribute Any (shared captured text)
DirtyFlag attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
DirtyFlags attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
DirtyFont attribute Any (shared captured text)
DirtyHints attribute Any (shared captured text)
DirtyOpacity attribute Any (shared captured text)
DirtyPen attribute Any (shared captured text)
DirtyTransform attribute Any (shared captured text)
LinearGradientFill attribute Any (shared captured text)
MacPrinter attribute Any (shared captured text)
MaskedBrush attribute Any (shared captured text)
MaxUser attribute Any (shared captured text)
ObjectBoundingModeGradients attribute Any (shared captured text)
OddEvenMode attribute Any (shared captured text)
OpenGL attribute Any (shared captured text)
OpenGL2 attribute Any (shared captured text)
OpenVG attribute Any (shared captured text)
PaintBuffer attribute Any (shared captured text)
PaintEngineFeature attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
PaintEngineFeatures attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
PaintOutsidePaintEvent attribute Any (shared captured text)
PainterPaths attribute Any (shared captured text)
PatternBrush attribute Any (shared captured text)
PatternTransform attribute Any (shared captured text)
Pdf attribute Any (shared captured text)
PerspectiveTransform attribute Any (shared captured text)
Picture attribute Any (shared captured text)
PixmapTransform attribute Any (shared captured text)
PolygonDrawMode attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
PolylineMode attribute Any (shared captured text)
PorterDuff attribute Any (shared captured text)
PostScript attribute Any (shared captured text)
PrimitiveTransform attribute Any (shared captured text)
QWindowSystem attribute Any (shared captured text)
QuickDraw attribute Any (shared captured text)
RadialGradientFill attribute Any (shared captured text)
Raster attribute Any (shared captured text)
RasterOpModes attribute Any (shared captured text)
SVG attribute Any (shared captured text)
Type attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
User attribute Any (shared captured text)
WindingMode attribute Any (shared captured text)
Windows attribute Any (shared captured text)
X11 attribute Any (shared captured text)
__init__ function (self, *args: Any, **kwargs: Any) -> None Native constructor; consult class documentation for supported overloads. (shared captured text)
begin function (self, pdev: Any) -> bool X.begin(pdev) -> bool (shared captured text)
className function (self, *args: Any, **kwargs: Any) -> Any Return the classname of the object (shared captured text)
clearDirty function (self, df: Any) -> None (shared captured text)
coordinateOffset function (self) -> Any X.coordinateOffset() -> PythonQt.QtCore.QPoint (shared captured text)
delete function (self, *args: Any, **kwargs: Any) -> Any Deletes the C++ object (at your own risk, my friend!) (shared captured text)
drawEllipse function (self, r: Any) -> None Reimplement this function to draw the largest ellipse that can be contained within rectangle rect. (shared captured text)
drawImage function (self, r: Any, pm: Any, sr: Any, arg3: flags) -> None X.drawImage(r, pm, sr, flags) (shared captured text)
drawLines function (self, lines: Any, lineCount: int) -> None X.drawLines(lines, lineCount) (shared captured text)
drawPath function (self, path: Any) -> None The default implementation ignores the path and does nothing. (shared captured text)
drawPixmap function (self, r: Any, pm: Any, sr: Any) -> None X.drawPixmap(r, pm, sr) (shared captured text)
drawPoints function (self, points: Any, pointCount: int) -> None X.drawPoints(points, pointCount) (shared captured text)
drawPolygon function (self, points: Any, pointCount: int, mode: Any) -> None X.drawPolygon(points, pointCount, mode) (shared captured text)
drawRects function (self, rects: Any, rectCount: int) -> None X.drawRects(rects, rectCount) (shared captured text)
drawTextItem function (self, p: Any, textItem: Any) -> None X.drawTextItem(p, textItem) (shared captured text)
drawTiledPixmap function (self, r: Any, pixmap: Any, s: Any) -> None X.drawTiledPixmap(r, pixmap, s) (shared captured text)
end function (self) -> bool X.end() -> bool (shared captured text)
hasFeature function (self, feature: Any) -> bool X.hasFeature(feature) -> bool (shared captured text)
help function (self, *args: Any, **kwargs: Any) -> Any Shows the help of available methods for this class (shared captured text)
inherits function (self, *args: Any, **kwargs: Any) -> Any Returns if the class inherits or is of given type name (shared captured text)
isActive function (self) -> bool X.isActive() -> bool (shared captured text)
isExtended function (self) -> bool X.isExtended() -> bool (shared captured text)
paintDevice function (self) -> Any X.paintDevice() -> PythonQt.QtGui.QPaintDevice (shared captured text)
painter function (self) -> Any X.painter() -> PythonQt.QtGui.QPainter (shared captured text)
setActive function (self, newState: bool) -> None Sets the active state of the paint engine to state. (shared captured text)
setDirty function (self, df: Any) -> None (shared captured text)
setSystemClip function (self, baseClip: Any) -> None (shared captured text)
setSystemRect function (self, rect: Any) -> None (shared captured text)
syncState function (self) -> None (shared captured text)
systemClip function (self) -> Any X.systemClip() -> PythonQt.QtGui.QRegion (shared captured text)
systemRect function (self) -> Any X.systemRect() -> PythonQt.QtCore.QRect (shared captured text)
testDirty function (self, df: Any) -> bool X.testDirty(df) -> bool (shared captured text)
type function (self) -> Any Reimplement this function to return the paint engine [Type](https://doc.qt.io/archives/qt-5.15/qpaintengine.html#Type-enum). (shared captured text)
updateState function (self, state: Any) -> None Reimplement this function to update the state of a paint engine. (shared captured text)