c++ - Make QDialog modal to operating system -
is possible if qdialog instance exec() uted, entire operating system blocked until user closes dialog? in following minimal example dialog blocks parent widget not os elements outside of qt application. rootwindow.h #ifndef rootwindow_h #define rootwindow_h #include <qapplication> #include <qmainwindow> #include <qtdebug> #include <qdialog> #include <qpushbutton> #include <qmessagebox> #include <qboxlayout> class rootwindow : public qmainwindow { q_object private: qwidget *widgetcentral; qboxlayout *layoutmain; qpushbutton *button; qdialog *dialog; public: rootwindow(qwidget *parent = 0, qt::windowflags flags = 0); ~rootwindow(); private slots: void slotclicked(); }; #endif // rootwindow_h rootwindow.cpp #include "rootwindow.h" rootwindow::rootwindow(qwidget *parent, qt::windowflags flags): qmainwindow(parent, flags) { setcentralwidget( widgetcentral = new qwidget ); widge...