Please show more code and not just one line.
Why don't you write some debug output to verify your assumtions:
qDebug() << "[BEFORE]: Radio button is checked:" << ui->radioButton_2->isChecked();
ui->radioButton_2->setChecked(false);
qDebug() << "[AFTER]: Radio button is checked:" << ui->radioButton_2->isChecked();
qDebug() << "[BEFORE]: Radio button is checked:" << ui->radioButton_2->isChecked();
ui->radioButton_2->setChecked(false);
qDebug() << "[AFTER]: Radio button is checked:" << ui->radioButton_2->isChecked();
To copy to clipboard, switch view to plain text mode
Bookmarks