Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.2.1
-
Windows 7
-
50b8506eaccc3c9bc3d717b241193bc8be9708b0 (stable, 16.4.2014, 5.3.1)
Description
When application has two dialogs, modal and non-modal. Modal dialog should prevent actions to application and also to other widgets. Works fine on Qt 4.8.5. but not worked any more on Qt5.
Looks like there's no difference is it set Qt::WindowModal or Qt::ApplicationModal.
#include <QApplication> #include <QLabel> int main(int argc, char **argv) { QApplication app(argc, argv); QLabel *w0 = new QLabel("Base Widget"); w0->resize(200, 200); w0->show(); QLabel *w1 = new QLabel("Application modal widget", w0, Qt::Dialog); w1->resize(200, 200); w1->setWindowModality(Qt::ApplicationModal); w1->show(); QLabel *w2 = new QLabel("Non-modal widget", w0, Qt::Dialog); w2->resize(200, 200); w2->show(); return app.exec(); }