I have several modal dialogs and main dialog where I exec() modal. How do I know if a main window blocked by modal or not?
Asked
Active
Viewed 1,281 times
1 Answers
6
You can check if there is an active modal dialog with QApplication::activeModalWidget().

alexisdm
- 29,448
- 6
- 64
- 99
-
I had write condition: QApplication::activeModalWidget() == NULL. – BiTOk Mar 22 '13 at 17:52