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

[regression] QDialog can go behind its parent window

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 5.6.1, 5.12
    • QPA
    • None
    • macOS

      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.

        For Gerrit Dashboard: QTBUG-56829
        # Subject Branch Project Status CR V

            qt.team.graphics.and.multimedia Qt Graphics Team
            ddurham Davy Durham
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes