Hello,

On the Qt 4.4 documentation, it states that if you set a parent widget (such as a QMainWindow) to disabled using setEnabled( false ), all children widgets are implicitly disabled.

Using this call, is there a way to keep one children widget enabled?

I know I can do something like this:

Qt Code:
  1. QList<QWidget*> list = parentWidget->findChildren<QWidget*>() ;
  2. foreach( QWidget* w, list )
  3. {
  4. w->setEnabled( false ) ;
  5. }
  6. childWidget->setEnabled( true ) ;
To copy to clipboard, switch view to plain text mode 

But then I lose the existing enabled/disabled state of the widgets.

Thanks!