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