Checkbox
Checkbox
Checkbox controls represent binary choices.
Inheritance
QWidget
└─ QCheckBox
└─ UIGQCheckBox + IUIGQWidgetBase
Common APIs
| Method | Description | Parameters | Return |
|---|---|---|---|
setChecked(bool checked) |
Sets whether the checkbox is checked. | checked: checked state. |
void |
isChecked() const |
Returns whether the checkbox is checked. | None. | bool |
setText(const QString& text) |
Sets checkbox label text. | text: label text. |
void |
setThemeName(const QString& themeName) |
Applies the themed checkbox appearance. | themeName: theme configuration name. |
void |
Notes
Use a checkbox when the option can be toggled independently. Use radio buttons or segmented controls when the user must choose exactly one option from a group.