سؤال

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