Class: QgsLayoutEffect

class qgis.core.QgsLayoutEffect

Bases: PyQt5.QtWidgets.QGraphicsEffect

A QGraphicsEffect subclass used for rendering layout items onto a scene with custom composition modes.

New in version 3.0.

QgsLayoutEffect() Constructor for QgsLayoutEffect.

Methods

childEvent

compositionMode

Returns the composition (blending) mode used for rendering the item.

connectNotify

customEvent

disconnectNotify

draw

param painter:

drawSource

isSignalConnected

receivers

sender

senderSignalIndex

setCompositionMode

Sets the composition (blending) mode used for rendering the item.

sourceBoundingRect

sourceChanged

sourceIsPixmap

sourcePixmap

timerEvent

updateBoundingRect

childEvent(self, QChildEvent)
compositionMode(self) QPainter.CompositionMode

Returns the composition (blending) mode used for rendering the item.

Return type:

QPainter.CompositionMode

connectNotify(self, QMetaMethod)
customEvent(self, QEvent)
disconnectNotify(self, QMetaMethod)
draw(self, painter: QPainter)
Parameters:

painter (QPainter) –

drawSource(self, QPainter)
isSignalConnected(self, QMetaMethod) bool
receivers(self, PYQT_SIGNAL) int
sender(self) QObject
senderSignalIndex(self) int
setCompositionMode(self, mode: QPainter.CompositionMode)

Sets the composition (blending) mode used for rendering the item.

Parameters:

mode (QPainter.CompositionMode) –

sourceBoundingRect(self, system: Qt.CoordinateSystem = Qt.LogicalCoordinates) QRectF
sourceChanged(self, Union[QGraphicsEffect.ChangeFlags, QGraphicsEffect.ChangeFlag])
sourceIsPixmap(self) bool
sourcePixmap(self, system: Qt.CoordinateSystem = Qt.LogicalCoordinates, mode: QGraphicsEffect.PixmapPadMode = QGraphicsEffect.PadToEffectiveBoundingRect) Tuple[QPixmap, QPoint]
timerEvent(self, QTimerEvent)
updateBoundingRect(self)