Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-38079

REG: Window ApplicationModal widget accepts actions to other dialog when other dialog is created after app modal widget

    XMLWordPrintable

Details

    • 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();
      }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            peppe Giuseppe D'Angelo
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes