In this article we will see how we can set the flat property to the QCommandLinkButton. This property holds whether the command link button border is raised. This property’s default is false. If this property is enabled, most styles will not paint the command link button background unless the button is being pressed.
In order to do this we use
setFlat method with the command link button object
Syntax : button.setFlat(True)
Argument : It takes bool as argument
Return : It 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.