PyQt5 Label – Setting blur radius to shadow
In this article we will see how we can set blur radius to the shadow of the label. The blur radius, if set to 0 the shadow will be sharp, the higher the number, the more blurred it will be, by default the blur radius is 0.
In order to set blur radius to the shadow of label with the help of
Syntax : shadow.setBlurRadius(n)
Here shadow is the QGraphicsDropShadowEffect object
Argument : It takes float 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