The QRadioButton class provides the following methods:
- isChecked(): This method returns the Boolean value true if the button is in the selected state.
- setIcon(): This method displays an icon with the radio button.
- setText(): This method assigns the text to the radio button. If you want to specify a shortcut key for the radio button, precede the preferred character in the text with an ampersand (&). The shortcut character will be underlined.
- setChecked(): To make any radio button appear selected by default, pass the Boolean value true to this method.