PyQt5 Label – Setting offset to the shadow
In this article we will see how we can set offset to shadow of the label, offset is basically distance between the shadow of the label and the label by default offset value is 8 although we can change it any time.
In order to do this we use
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
Syntax : shadow.setOffset(n)
Here shadow is the QGraphicsDropShadowEffect object
Argument : It takes QPointF object as argument
Return : None
Below is the implementation