Hi! I'm trying to connect two QGroupBox. If the groupbox1 checked or clicked the other groupBox2 be disabled or enabled (setEnabled (false) or setEnabled (true)). In Qt Designer works well.

Qt Code:
  1. connect(groupBox1, SIGNAL(toggled(bool)), groupBox2, SLOT(setEnabled(bool)));
To copy to clipboard, switch view to plain text mode 
ou
Qt Code:
  1. QObject::connect(groupBox1, SIGNAL(clicked(bool)), groupBox2, SLOT(setEnabled(bool)));
To copy to clipboard, switch view to plain text mode 
Qt Code:
  1. Qt 4.4.3
To copy to clipboard, switch view to plain text mode 

Any idea? Thanks