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

Modeless window on Mac behind its parent window

XMLWordPrintable

      Clicking outside the modeless window (the child window in my example), hides this window under its parent.
      The following sample demonstrates the problem. This problem does not exist in Windows.

      Changing Qt::Window for Qt::Tool allows the window to float, but above all main windows and not only the parent window.

      #include <QtCore>
      #include <QtGui>
      #include <QtWidgets>
      
      int main(int argc, char * argv[])
      {
      	QApplication app(argc, argv);
      
      	QMainWindow* mw = new QMainWindow(0);
      	mw->show();
      	QMainWindow* mw2 = new QMainWindow(0);
      	mw2->show();
      
      	QDialog* d = new QDialog(mw, Qt::Window);
      	d->show();
          return app.exec();
      }
      

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

            vestbo Tor Arne Vestbø
            jirauser26727 user-04d21 (Inactive)
            Votes:
            14 Vote for this issue
            Watchers:
            21 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes