You hide a groupbox and the toogle signal you connect to your main dialog, so fix that:
connect(ui->toggleBtn, SIGNAL(toggled(bool)), this, SLOT(setVisible(bool))); //why you connect with "this" instead of what you hide? ui->groupBox1_2
//...
ui->groupBox1_2->hide(); //you hide groupBox1_2 but the connect will hide your whole dialog
connect(ui->toggleBtn, SIGNAL(toggled(bool)), this, SLOT(setVisible(bool))); //why you connect with "this" instead of what you hide? ui->groupBox1_2
//...
ui->groupBox1_2->hide(); //you hide groupBox1_2 but the connect will hide your whole dialog
To copy to clipboard, switch view to plain text mode
Bookmarks