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 PySide2.QtWidgets.QGraphicsColorizeEffect([parent=None])
param parent:

PySide2.QtCore.QObject

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

PySide2.QtWidgets.QGraphicsColorizeEffect.color()
Return type:

PySide2.QtGui.QColor

This property holds the color of the effect..

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

PySide2.QtWidgets.QGraphicsColorizeEffect.colorChanged(color)
Parameters:

colorPySide2.QtGui.QColor

PySide2.QtWidgets.QGraphicsColorizeEffect.setColor(c)
Parameters:

cPySide2.QtGui.QColor

This property holds the color of the effect..

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

PySide2.QtWidgets.QGraphicsColorizeEffect.setStrength(strength)
Parameters:

strength – float

This property holds the strength of the effect..

By default, the strength is 1.0. A strength 0.0 equals to no effect, while 1.0 means full colorization.

PySide2.QtWidgets.QGraphicsColorizeEffect.strength()
Return type:

float

This property holds the strength of the effect..

By default, the strength is 1.0. A strength 0.0 equals to no effect, while 1.0 means full colorization.

PySide2.QtWidgets.QGraphicsColorizeEffect.strengthChanged(strength)
Parameters:

strength – float