Code:
void MainWindow::runButtonClicked() {
 if (MainWindow::betAllRed->isChecked()==true){ test.didBet=true;
This code is not working when the checkbox is checked.
The above if condition is not working, the "else" statement is executing, what is the wrong with my code, Please give the soliution