PythonQt.QtGui.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 |
|
AllFeatures |
attribute | Any |
|
AlphaBlend |
attribute | Any |
|
Antialiasing |
attribute | Any |
|
BlendModes |
attribute | Any |
|
Blitter |
attribute | Any |
|
BrushStroke |
attribute | Any |
|
ConicalGradientFill |
attribute | Any |
|
ConstantOpacity |
attribute | Any |
|
ConvexMode |
attribute | Any |
|
CoreGraphics |
attribute | Any |
|
Direct2D |
attribute | Any |
|
Direct3D |
attribute | Any |
|
DirtyBackground |
attribute | Any |
|
DirtyBackgroundMode |
attribute | Any |
|
DirtyBrush |
attribute | Any |
|
DirtyBrushOrigin |
attribute | Any |
|
DirtyClipEnabled |
attribute | Any |
|
DirtyClipPath |
attribute | Any |
|
DirtyClipRegion |
attribute | Any |
|
DirtyCompositionMode |
attribute | Any |
|
DirtyFlag |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. |
DirtyFlags |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. |
DirtyFont |
attribute | Any |
|
DirtyHints |
attribute | Any |
|
DirtyOpacity |
attribute | Any |
|
DirtyPen |
attribute | Any |
|
DirtyTransform |
attribute | Any |
|
LinearGradientFill |
attribute | Any |
|
MacPrinter |
attribute | Any |
|
MaskedBrush |
attribute | Any |
|
MaxUser |
attribute | Any |
(shared captured text) |
ObjectBoundingModeGradients |
attribute | Any |
|
OddEvenMode |
attribute | Any |
|
OpenGL |
attribute | Any |
|
OpenGL2 |
attribute | Any |
|
OpenVG |
attribute | Any |
|
PaintBuffer |
attribute | Any |
|
PaintEngineFeature |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. |
PaintEngineFeatures |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. |
PaintOutsidePaintEvent |
attribute | Any |
|
PainterPaths |
attribute | Any |
|
PatternBrush |
attribute | Any |
|
PatternTransform |
attribute | Any |
|
Pdf |
attribute | Any |
|
PerspectiveTransform |
attribute | Any |
|
Picture |
attribute | Any |
|
PixmapTransform |
attribute | Any |
|
PolygonDrawMode |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. |
PolylineMode |
attribute | Any |
|
PorterDuff |
attribute | Any |
|
PostScript |
attribute | Any |
|
PrimitiveTransform |
attribute | Any |
|
QWindowSystem |
attribute | Any |
|
QuickDraw |
attribute | Any |
|
RadialGradientFill |
attribute | Any |
|
Raster |
attribute | Any |
|
RasterOpModes |
attribute | Any |
|
SVG |
attribute | Any |
|
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 |
|
Windows |
attribute | Any |
|
X11 |
attribute | Any |
|
__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 |
className |
function | (self, *args: Any, **kwargs: Any) -> Any |
Return the classname of the object (shared captured text) |
clearDirty |
function | (self, df: Any) -> None |
|
coordinateOffset |
function | (self) -> Any |
X.coordinateOffset() -> PythonQt.QtCore.QPoint |
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. |
drawImage |
function | (self, r: Any, pm: Any, sr: Any, arg3: flags) -> None |
X.drawImage(r, pm, sr, flags) |
drawLines |
function | (self, lines: Any, lineCount: int) -> None |
X.drawLines(lines, lineCount) |
drawPath |
function | (self, path: Any) -> None |
The default implementation ignores the path and does nothing. |
drawPixmap |
function | (self, r: Any, pm: Any, sr: Any) -> None |
X.drawPixmap(r, pm, sr) |
drawPoints |
function | (self, points: Any, pointCount: int) -> None |
X.drawPoints(points, pointCount) |
drawPolygon |
function | (self, points: Any, pointCount: int, mode: Any) -> None |
X.drawPolygon(points, pointCount, mode) |
drawRects |
function | (self, rects: Any, rectCount: int) -> None |
X.drawRects(rects, rectCount) |
drawTextItem |
function | (self, p: Any, textItem: Any) -> None |
X.drawTextItem(p, textItem) |
drawTiledPixmap |
function | (self, r: Any, pixmap: Any, s: Any) -> None |
X.drawTiledPixmap(r, pixmap, s) |
end |
function | (self) -> bool |
X.end() -> bool |
hasFeature |
function | (self, feature: Any) -> bool |
X.hasFeature(feature) -> bool |
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 |
isExtended |
function | (self) -> bool |
X.isExtended() -> bool |
paintDevice |
function | (self) -> Any |
X.paintDevice() -> PythonQt.QtGui.QPaintDevice |
painter |
function | (self) -> Any |
X.painter() -> PythonQt.QtGui.QPainter |
setActive |
function | (self, newState: bool) -> None |
Sets the active state of the paint engine to state. |
setDirty |
function | (self, df: Any) -> None |
|
setSystemClip |
function | (self, baseClip: Any) -> None |
|
setSystemRect |
function | (self, rect: Any) -> None |
|
syncState |
function | (self) -> None |
|
systemClip |
function | (self) -> Any |
X.systemClip() -> PythonQt.QtGui.QRegion |
systemRect |
function | (self) -> Any |
X.systemRect() -> PythonQt.QtCore.QRect |
testDirty |
function | (self, df: Any) -> bool |
X.testDirty(df) -> bool |
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). |
updateState |
function | (self, state: Any) -> None |
Reimplement this function to update the state of a paint engine. |