...

/

QRadioButton, QGroupBox, and QTabWidget

QRadioButton, QGroupBox, and QTabWidget

Understand how our GUI applications use QRadioButton, QGroupBox, and QTabWidget widgets.

QRadioButton

You can create option buttons with the QRadioButton class that can be turned on when checked or off when unchecked. A round button and an associated label or icon make up each radio button. Radio buttons are typically employed when you need to give a user many options. Only one can be checked at once. The other radio buttons are unchecked as the user chooses another radio button. If one radio button is checked inside the parent, all the other buttons will become unchecked. When you set multiple radio buttons in a parent widget, those buttons become auto-exclusive, meaning they ...