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?

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top