Question

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?

Was it helpful?

Solution

You can check if there is an active modal dialog with QApplication::activeModalWidget().

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top