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. Graphic effect can set to the command link button with the help of
In order to do this we use
graphicsEffect method with the command link button object
Syntax : button.graphicsEffect()
Argument : It takes no argument
Return : It returns QGraphicEffect object
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.