
Originally Posted by
lyuts
connect(groupBox1, SIGNAL(toggled(bool)), this, SLOT(mySlot(bool)));
...
void
mySlot(bool ipFlag)
{
groupBox2->setEnabled(!ipFlag);
}
connect(groupBox1, SIGNAL(toggled(bool)), this, SLOT(mySlot(bool)));
...
void
mySlot(bool ipFlag)
{
groupBox2->setEnabled(!ipFlag);
}
To copy to clipboard, switch view to plain text mode
For that you can simply use QWidget::setDisabled().
connect(groupBox1, SIGNAL(toggled(bool)), groupBox2, SLOT(setDisabled(bool)));
connect(groupBox1, SIGNAL(toggled(bool)), groupBox2, SLOT(setDisabled(bool)));
To copy to clipboard, switch view to plain text mode
Bookmarks