QGraphicsColorizeEffect

The QGraphicsColorizeEffect class provides a colorize effect. More

Inheritance diagram of PySide6.QtWidgets.QGraphicsColorizeEffect

New in version 4.6.

Synopsis

Functions

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)).

class PySide6.QtWidgets.QGraphicsColorizeEffect([parent=None])
Parameters

parentPySide6.QtCore.QObject

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

PySide6.QtWidgets.QGraphicsColorizeEffect.color()
Return type

PySide6.QtGui.QColor

See also

setColor()

PySide6.QtWidgets.QGraphicsColorizeEffect.colorChanged(color)
Parameters

colorPySide6.QtGui.QColor

PySide6.QtWidgets.QGraphicsColorizeEffect.setColor(c)
Parameters

cPySide6.QtGui.QColor

See also

color()

PySide6.QtWidgets.QGraphicsColorizeEffect.setStrength(strength)
Parameters

strength – float

See also

strength()

PySide6.QtWidgets.QGraphicsColorizeEffect.strength()
Return type

float

See also

setStrength()

PySide6.QtWidgets.QGraphicsColorizeEffect.strengthChanged(strength)
Parameters

strength – float