PyQt5 Label – Setting color to the Color Effect
In this article we will see how we can set color to 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.
Syntax : color_effect.setColor(color_object)
Here color_effect is the QGraphicsColorizeEffect object
Argument : It takes color object as argument example Qt.green
Return : It returns None
Below is the implementation
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course