Class: QgsMapRendererAbstractCustomPainterJob

class qgis.core.QgsMapRendererAbstractCustomPainterJob(settings: QgsMapSettings)

Bases: QgsMapRendererJob

Constructor for QgsMapRendererAbstractCustomPainterJob, using the given map settings.

Abstract base class for map renderer jobs which use custom painters.

New in version 3.10.

Parameters

settings

childEvent()
connectNotify()
customEvent()
disconnectNotify()
isSignalConnected()
preparePainter(self, painter: QPainter, backgroundColor: Union[QColor, Qt.GlobalColor, QGradient] = Qt.transparent)

Prepares the given painter ready for a map render.

The backgroundColor argument specifies the color to use for the map’s background.

Parameters
  • painter (QPainter) –

  • backgroundColor (Union[QColor) –

receivers()
sender()
senderSignalIndex()
timerEvent()