QGraphicsColorizeEffect

The QGraphicsColorizeEffect class provides a colorize effect. More

Inheritance diagram of PySide2.QtWidgets.QGraphicsColorizeEffect

New in version 4.6.

Synopsis

Functions

Slots

Signals

Detailed Description

A colorize effect renders the source with a tint of its color() . The color can be modified using the setColor() function.

By default, the color is light blue ( QColor (0, 0, 192)).

../../_images/graphicseffect-colorize.png
class QGraphicsColorizeEffect([parent=None])
param parent

QObject

Constructs a new QGraphicsColorizeEffect instance. The parent parameter is passed to QGraphicsEffect ‘s constructor.

PySide2.QtWidgets.QGraphicsColorizeEffect.color()
Return type

QColor

See also

setColor()

PySide2.QtWidgets.QGraphicsColorizeEffect.colorChanged(color)
Parameters

colorQColor

PySide2.QtWidgets.QGraphicsColorizeEffect.setColor(c)
Parameters

cQColor

See also

color()

PySide2.QtWidgets.QGraphicsColorizeEffect.setStrength(strength)
Parameters

strengthqreal

See also

strength()

PySide2.QtWidgets.QGraphicsColorizeEffect.strength()
Return type

qreal

See also

setStrength()

PySide2.QtWidgets.QGraphicsColorizeEffect.strengthChanged(strength)
Parameters

strengthqreal