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
Deprecated since version QGIS: 3.38, use
QgsGeometryPaintDevice
insteadQgsMaskPaintDevice(usePathStroker: bool = False) ! Constructor If
usePathStroker
isTrue
, path will be considered with a stroke regarding QPainter pen configurationDeprecated since version QGIS: 3.38, use
QgsGeometryPaintDevice
insteadMethods
Returns the mask painter path painted on this paint device
- param metric:
- rtype:
Optional[QPaintEngine]
- maskPainterPath(self) QPainterPath ¶
Returns the mask painter path painted on this paint device
Deprecated since version Use:
QgsGeometryPaintDevice
instead- Return type:
QPainterPath
- metric(self, metric: QPaintDevice.PaintDeviceMetric) int ¶
- Parameters:
metric (QPaintDevice.PaintDeviceMetric)
- Return type:
int
- paintEngine(self) QPaintEngine | None ¶
- Return type:
Optional[QPaintEngine]