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 鈥榮 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:

color 鈥� PySide2.QtGui.QColor

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

c 鈥� 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.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