Class: QgsLayoutEffect¶
-
class
qgis.core.
QgsLayoutEffect
¶ Bases:
PyQt5.QtWidgets.QGraphicsEffect
Constructor for QgsLayoutEffect.
A QGraphicsEffect subclass used for rendering layout items onto a scene with custom composition modes.
Methods
Returns the composition (blending) mode used for rendering the item.
- param painter
Sets the composition (blending)
mode
used for rendering the item.-
childEvent
(self, QChildEvent)¶
-
compositionMode
(self) → QPainter.CompositionMode¶ Returns the composition (blending) mode used for rendering the item.
See also
- 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.See also
- 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)¶