PyQt5 Label – Accessing the strength of the Color Effect
In this article we will see how we can access the strength of the color effect of the label by default there is no color effect to the label although we can create color effect for the label. Color effect is not like background color it is more like of colored filters we use on pictures. Strength is the intensity of the color effect.
In order to do this we use strength method.
Syntax : color_effect.strength()
Here color_effect is the QGraphicsColorizeEffect object
Argument : It takes no argument
Return : It returns float value
Note : Strength value ranges from 0 to 1.0
Below is the implementation