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
isTrue
, path will be considered with a stroke regarding QPainter pen configurationMethods
Returns the mask painter path painted on this paint device
- param metric:
- 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