Inherited by QCheckBox, QPushButton, QRadioButton and QToolButton. The QButton class is the abstract base class of button widgets, providing functionality common to buttons. The QButton class implements an abstract button, and lets subclasses specify how to reply to user actions and how to draw the button. QButton provides both push and toggle buttons. The QRadioButton and QCheckBox classes provide only toggle buttons, QPushButton and QToolButton provide both toggle and push buttons.
Any button can have either a text or pixmap label.
Only toggle buttons user. When the user clicks a toggle button to toggle it on, the button is first pressed , then released into on state. This is useful mostly for pixmap buttons since they have no automatic accelerator. Constructs a standard button with a parent widget and a name. Destroys the button and all its child widgets.