PyQt5 Label – Setting horizontal offset of shadow
In this article we will see how we can set 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.setXOffset(n)
Here shadow is the QGraphicsDropShadowEffect object
Argument : It takes float value as argument
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