Subgroup: Effect

Class: QgsEffectPainter

class qgis.core.QgsEffectPainter(renderContext: QgsRenderContext)

Bases: sip.wrapper

QgsEffectPainter constructor

Parameters:renderContext – the QgsRenderContext object

New in version 3.0.

QgsEffectPainter(renderContext: QgsRenderContext, effect: QgsPaintEffect) QgsEffectPainter constructor alternative if no painter translation is needed

  • renderContext – the QgsRenderContext object
  • effect – the QgsPaintEffect object

New in version 3.0.


A class to manager painter saving and restoring required for effect drawing

New in version 3.0: Methods

setEffect Sets the effect to be painted



setEffect(self, effect: QgsPaintEffect)

Sets the effect to be painted

Parameters:effect – the QgsPaintEffect object