QGraphicsColorizeEffect¶
The
QGraphicsColorizeEffect
class provides a colorize effect. More…
New in version 4.6.
Synopsis¶
Functions¶
Slots¶
def
setColor
(c)def
setStrength
(strength)
Signals¶
def
colorChanged
(color)def
strengthChanged
(strength)
Detailed Description¶
A colorize effect renders the source with a tint of its
color()
. The color can be modified using thesetColor()
function.By default, the color is light blue (
QColor
(0, 0, 192)).
- class PySide2.QtWidgets.QGraphicsColorizeEffect([parent=None])¶
- param parent:
Constructs a new
QGraphicsColorizeEffect
instance. Theparent
parameter is passed toQGraphicsEffect
‘s constructor.
- PySide2.QtWidgets.QGraphicsColorizeEffect.color()¶
- Return type:
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:
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
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.