With
mainWindow->enable(false);
i can disable all widgets on it. But i want one of the widgets NOT to be disabled. Any ideas?
Of course i can disable them one by one, but it is lot of (inefficient) code.
With
mainWindow->enable(false);
i can disable all widgets on it. But i want one of the widgets NOT to be disabled. Any ideas?
Of course i can disable them one by one, but it is lot of (inefficient) code.
With some tricks you can find all widgets on your main window using QObject::findChildren() or QObject::children(). Then loop through them and disable them.
BIllNo123 (26th August 2010)
Thanks Lykurg!
A notice: By doing
mainWindow->setEnabled(true);
it enables all widgets except those that were explicitly disabled, e.g. widget1->setDisabled(true);
In other words, it works the other way...
Problem solved. I had to disable it in pieces.
Bookmarks