7

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?

BiTOk
  • 716
  • 1
  • 6
  • 15

1 Answers1

6

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

alexisdm
  • 29,448
  • 6
  • 64
  • 99