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

Combining child->hide() and child->show() results in the child widget being shown even though the parent is in 'minimized' state

    XMLWordPrintable

Details

    Description

      When a parent widget/window is minimized all its child widget windows are hidden too. It is not possible to set the child visible while the parent is in minimized state. This works fine so far. Now, if one calls hide()/setVisible(false) on the child widget the behavior changes. Combining hide() and show() results in the child widget being shown.

      Steps to reproduce:
      1. Run the sample attached
      2. Hide the mainwindow by clicking the 'Minimize' symbol -> The mainwindow along with the child widget is hidden.
      3. Click 'Show Child' button -> Nothing happens. The parent prevents the child from making itself visible. Works as it should.
      4. Click 'Hide Child' button.
      5. Click 'Show Child' button
      EXPECTED: Nothing happens.
      ACTUAL: The child window is shown.

      Attachments

        1. qtbug62530_diag.diff
          3 kB
        2. qtbug62530_log.txt
          1 kB
        3. qtbug62530.zip
          2 kB
        4. qtbug62530.zip
          1.0 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            richard Richard Moe Gustavsen
            risto.sipola Risto Sipola
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes