Class: QgsMaskPaintDevice

class qgis.core.QgsMaskPaintDevice

Bases: PyQt5.QtGui.QPaintDevice

Mask painter device that can be used to register everything painted into a QPainterPath used later as clip path

New in version 3.26.

QgsMaskPaintDevice(usePathStroker: bool = False) ! Constructor If usePathStroker is True, path will be considered with a stroke regarding QPainter pen configuration

Methods

maskPainterPath

Returns the mask painter path painted on this paint device

metric

param metric:

paintEngine

rtype:

QPaintEngine

maskPainterPath(self) QPainterPath

Returns the mask painter path painted on this paint device

Return type:

QPainterPath

metric(self, metric: QPaintDevice.PaintDeviceMetric) int
Parameters:

metric (QPaintDevice.PaintDeviceMetric) –

Return type:

int

paintEngine(self) QPaintEngine
Return type:

QPaintEngine