Home > OS >  How clear all checkboxs and radiobuttons with a pushbutton in Qt?
How clear all checkboxs and radiobuttons with a pushbutton in Qt?

Time:09-01

enter image description here

i want when push the 'clear all choises' button , all checkboxs and radiobuttons are be unchecked.

CodePudding user response:

void MainWindow::on_pushButton_clicked()
{
    ui->checkBox->setChecked(false);
    ui->radioButton->setChecked(false);
    // Add all other check boxes and radio buttons you have...
}
  • Related