QGraphicsColorizeEffect#

The QGraphicsColorizeEffect class provides a colorize effect. More

Inheritance diagram of PySide6.QtWidgets.QGraphicsColorizeEffect

New in version 4.6.

Synopsis#

Properties#

  • color - The color of the effect

  • strength - The strength of the effect

Functions#

Slots#

Signals#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

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.

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property PᅟySide6.QtWidgets.QGraphicsColorizeEffect.color: PySide6.QtGui.QColor#

This property holds the color of the effect..

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

Access functions:
property PᅟySide6.QtWidgets.QGraphicsColorizeEffect.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.

Access functions:
PySide6.QtWidgets.QGraphicsColorizeEffect.color()#
Return type:

PySide6.QtGui.QColor

See also

setColor()

Getter of property color .

PySide6.QtWidgets.QGraphicsColorizeEffect.colorChanged(color)#
Parameters:

colorPySide6.QtGui.QColor

This signal is emitted whenever the effect’s color changes. The color parameter holds the effect’s new color.

Notification signal of property color .

PySide6.QtWidgets.QGraphicsColorizeEffect.setColor(c)#
Parameters:

cPySide6.QtGui.QColor

See also

color()

Setter of property color .

PySide6.QtWidgets.QGraphicsColorizeEffect.setStrength(strength)#
Parameters:

strength – float

See also

strength()

Setter of property strength .

PySide6.QtWidgets.QGraphicsColorizeEffect.strength()#
Return type:

float

See also

setStrength()

Getter of property strength .

PySide6.QtWidgets.QGraphicsColorizeEffect.strengthChanged(strength)#
Parameters:

strength – float

This signal is emitted whenever setStrength() changes the colorize strength property. strength contains the new strength value of the colorize effect.

Notification signal of property strength .