In this article we will see how we can set graphic effect to the QCommandLinkButton. Graphic effect can be shadow, blur or color effect, these effect can be changed any time also new effects can be created any time. If there already is an effect installed on this command link button,
QWidget will delete the existing effect before installing the new effect.
In order to do this we use
setGraphicsEffect method with the command link button object
Syntax : button.setGraphicsEffect(effect)
Argument : It takes QGraphicEffect object as argument
Return : It returns None
Note: This method will apply the effect on itself and all its children.
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.