Grouping 20 pushbutton together (Solved)
-
Hi,
You can connect a common signal to all the QPushButton's setVisible slot and then emit that signal when required.
-
Hi ! Or instead of putting them in a layout you can put them in a widget (and then layout that widget) and can simply use set visible on the "mother" widget.
I do it that way all the time.Greetings,
Nils
-
What does this mean ? Did this solve your query ?
-
on_radioButton_clicked()
{
ui->widget->setVisible(false);
ui->pushButton->setVisible(false);
}on_radioButton2_clicked()
{
//ui->widget->setVisible(false);
ui->pushButton->setVisible(false);
}pushButton->setVisible work, but not widget->setVisible(false)
-
Hi !
Like i said, if you group all Elements in an oute widget containing a layout you can simply set this outer widget visible true/false an all siblings will follow.
Greetings,
Nils