In this article we will see how we can get the object name of the QCommandLinkButton. Object name is given for searching the specific button inside the window programmatically, also object name can be used for setting stylesheet using object name. By default developer has not set any object name to the command link although we can set it any time with the help of
In order to do this we use
objectName method with the command link button object
Syntax : button.objectName()
Argument : It takes no argument
Return : It return string
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.