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

Mac: Multiple modal dialogs block all input

    XMLWordPrintable

Details

    • macOS
    • f3bc1f850046341745d42e2d6739724321634891 (qt/qtbase/dev) f1244e54e5843c48d01efc1e06481d16cf3e2c82 (qt/qtbase/6.1) a6cc60ee029602651932108f517a59bac8ee2699 (qt/qtbase/6.2) e4a1fa99d45931019c13861aa6545b7519c462c7 (qt/tqtc-qtbase/5.15)

    Description

      Opening multiple modal dialogs will block all user input.

      While you might say, that you are not supposed to pen multiple modal dialogs, it still can happen....

       

      
      #include <QApplication>
      #include <QInputDialog>
      #include <QMainWindow>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
          QMainWindow w;
          w.resize(800, 600);
      
          auto in1 = new QInputDialog(&w);
          auto in2 = new QInputDialog(&w);
      
          // only one QInputDialog will be displayed on mac as both are centered without window decorations
          // the visible QInputDialog won't accept any inputs....
          // the application is not responding and a force quit is required
      
          in1->open();
          in2->open();
      
          w.show();
          return a.exec();
      }
      
      

      Attachments

        Issue Links

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

          Activity

            People

              dorisverria Doris Verria
              theonering Hannah von Reth
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: