Class: QgsMapRendererAbstractCustomPainterJob¶
- class qgis.core.QgsMapRendererAbstractCustomPainterJob(settings: QgsMapSettings)¶
Bases:
QgsMapRendererJob
Constructor for
QgsMapRendererAbstractCustomPainterJob
, using the given mapsettings
.Abstract base class for map renderer jobs which use custom painters.
New in version 3.10:
Methods
Prepares the given
painter
ready for a map render.- childEvent(self, QChildEvent)¶
- connectNotify(self, QMetaMethod)¶
- customEvent(self, QEvent)¶
- disconnectNotify(self, QMetaMethod)¶
- isSignalConnected(self, QMetaMethod) bool ¶
- 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(self, PYQT_SIGNAL) int ¶
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- timerEvent(self, QTimerEvent)¶