QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
QgsLayoutEffect Class Reference

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

#include <qgslayouteffect.h>

Inheritance diagram for QgsLayoutEffect:
Inheritance graph
[legend]

Public Member Functions

 QgsLayoutEffect ()=default
 
Q_DECL_DEPRECATED QPainter::CompositionMode compositionMode () const
 Returns the composition (blending) mode used for rendering the item.
 
Q_DECL_DEPRECATED void setCompositionMode (QPainter::CompositionMode mode)
 Sets the composition (blending) mode used for rendering the item.
 

Protected Member Functions

void draw (QPainter *painter) override
 

Detailed Description

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

Deprecated:
QGIS 3.34. This class should not be used, it is non-stable and results in crashes. See https://bugreports.qt.io/browse/QTBUG-58501.

Definition at line 36 of file qgslayouteffect.h.

Constructor & Destructor Documentation

◆ QgsLayoutEffect()

QgsLayoutEffect::QgsLayoutEffect ( )
default

Member Function Documentation

◆ compositionMode()

Q_DECL_DEPRECATED QPainter::CompositionMode QgsLayoutEffect::compositionMode ( ) const
inline

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

See also
setCompositionMode()
Deprecated:
QGIS 3.34. This class should not be used, it is non-stable and results in crashes. See https://bugreports.qt.io/browse/QTBUG-58501.

Definition at line 60 of file qgslayouteffect.h.

◆ draw()

void QgsLayoutEffect::draw ( QPainter *  painter)
overrideprotected

Definition at line 23 of file qgslayouteffect.cpp.

◆ setCompositionMode()

void QgsLayoutEffect::setCompositionMode ( QPainter::CompositionMode  mode)

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

See also
compositionMode()
Deprecated:
QGIS 3.34. This class should not be used, it is non-stable and results in crashes. See https://bugreports.qt.io/browse/QTBUG-58501.

Definition at line 54 of file qgslayouteffect.cpp.


The documentation for this class was generated from the following files: