PyQt5 Label – Accessing Vertical offset of shadow
In this article we will see how we can access the vertical offset of shadow to 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.yOffset()
Here shadow is the QGraphicsDropShadowEffect object
Argument : It takes no argument
Return : It returns float value
Below is the implementation