In this article we will see how we can set shadow color to the label, when we create a shadow to the label it is by default of black color although we can its color.
In order to set color to the shadow of label with the help of
Syntax : shadow.setColor(color_object)
Here shadow is the QGraphicsDropShadowEffect object
Argument : It takes color object as argument example Qt.green
Return : 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