PDA

View Full Version : Enable QWidget child while parent disabled



^NyAw^
30th May 2008, 10:39
Hi,

I have a QGroupBox that is disabled and one of their childs have to be enabled.



pqGB->setDisabled(true);
pqMyWidget->setEnabled(true); //Child of "pqGB"



But the widget is disabled.

Thanks,

wysota
30th May 2008, 10:48
You can't enable a child whose parent is disabled. What is the point of doing that?

^NyAw^
30th May 2008, 10:53
Hi,

I have a 3 steps program that is represented on 3 QGroupBoxes that the user can do some things on every setp.
In the second step, one widget shows images, but in the third step I want to use the same wiget that is on the second group box to show images again. The problem is that the second group box is disabled to not let the user do somethings.

Thanks,