Class: QgsMaskPaintDevice

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

Deprecated since version 3.38: Use QgsGeometryPaintDevice instead.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsMaskPaintDevice

Base classes

QPaintDevice

Methods

maskPainterPath

Returns the mask painter path painted on this paint device

class qgis.core.QgsMaskPaintDevice[source]

Bases: QPaintDevice

__init__(usePathStroker: bool = False)

! Constructor If usePathStroker is True, path will be considered with a stroke regarding QPainter pen configuration

Deprecated since version 3.38: Use QgsGeometryPaintDevice instead.

Parameters:

usePathStroker (bool = False)

maskPainterPath(self) QPainterPath[source]

Returns the mask painter path painted on this paint device

Deprecated since version 3.40: Use QgsGeometryPaintDevice instead.

Return type:

QPainterPath