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

[regression] QDialog can go behind its parent window

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Duplicate
    • Affects Version/s: 5.6.1, 5.12
    • Fix Version/s: None
    • Component/s: QPA
    • Labels:
      None
    • Platform/s:
      macOS

      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

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

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes