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

[6.7 REG] Changing QML Window visible property clobbers window state

    XMLWordPrintable

Details

    • All
    • 5da51e012 (dev), b3be35d41 (6.7), 844bd4ced (6.7.1)

    Description

      Beginning in Qt 6.7.0, setting 'Window.visible = false' on a visible window unexpectedly clobbers the existing window state (and position, in some cases).

       

      Repro steps:

      1. Run the included Qt Quick project
      2. Maximize the window
      3. Click the button to hide the window for 2 seconds

       

      Bonus repro steps (multi-monitor scenario):

      1. Run the included Qt Quick project
      2. Move the window to another monitor
      3. Maximize the window
      4. Click the button to hide the window for 2 seconds

       

      Expected Behavior:

      After 2 seconds, the window should reappear at the location and state (minimized/maximized/fullscreen/normal) it was prior to being hidden. This is the behavior of the included project when running on Qt 6.6.3 or earlier.

       

      Actual Behavior:

      On Qt 6.7.0, the window reappears in a non-maximized state and sometimes in a different location if the window was moved. For the multi-monitor scenario, the window may appear on a completely different screen than it was when hidden, though this doesn't seem to happen consistently.

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            cgutman Cameron Gutman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes