Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.6.1, 5.12
-
None
Description
A QDialog is able to go behind its parent window depending on the order show() is called (or a series of hide()/show() calls): If the child is shown before the parent, then the child can go behind the parent when the parent is shown.
X11 exhibits the problem. Windows does not exhibit the problem (not tested elsewhere).
Attached is a tar that will reproduce the problem.
The code in the attached file is how I narrowed down the problem, but my actual situation involves more complex reasons that the parent window is reparented and setParent() unavoidably hides the child.
Also I tested Qt4.8 does not have this problem on X11. So it is both a regression and an inconsistency between platforms in current versions.
Attachments
Issue Links
- duplicates
-
QTBUG-34767 Modeless window on Mac behind its parent window
- Closed
- relates to
-
QTBUG-70756 QDialog is not top-level
- Closed
-
QTBUG-46626 QFileDialog hidden behind main window
- Closed
-
QTBUG-46627 QFileDialog invisible (yet present)
- Closed
-
QTBUG-39277 XCB on Unity using Gtk 2 theme plugin: Dialog boxes behind main window when parent widget is not top level
- Closed