Details
-
Bug
-
Resolution: Won't Do
-
P2: Important
-
None
-
5.2.0 Beta1 , 5.2.1, 5.12
-
OSX 10.9, macOS 10.14
Description
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(); }
Attachments
Issue Links
- is duplicated by
-
QTBUG-27879 Modeless dialogs on Mac disappear behind the main window when the user clicks outside them.
- Closed
-
QTBUG-56829 [regression] QDialog can go behind its parent window
- Closed
-
QTBUG-71728 modaless dialog will be hide in main ui in mac os
- Closed
- relates to
-
QTBUG-53492 Mac: non-modal QWindow called from application-modal QDialog is inoperable
- Closed
For Gerrit Dashboard: QTBUG-34767 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
95044,4 | OS X: modeless dialog window. | 5.3 | qt/qtbase | Status: ABANDONED | 0 | 0 |
95232,1 | OS X: transient parent and child window's level | 5.3 | qt/qtbase | Status: ABANDONED | 0 | 0 |
244956,7 | Document that dialog parent relationship does not imply stacking order | 5.12 | qt/qtbase | Status: MERGED | +2 | 0 |