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

The implicit size of layouts is not updated while the containing window is not visible

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P4: Low P4: Low
    • None
    • 6.7.1
    • Quick: Layouts
    • None
    • Linux, Wayland, Hyprland (though this should be unrelated)

      When the window containing a layout is invisible, the layout's dimensions will not update when contents change. This is especially noticeable when a window is sized by its contents, as it will flash to the size with no contents before updating to the size it wants if the platform allows.

       

      The bug can be easily reproduced with the attached sample as shown in the video. Add elements and print the dimensions before the window is visible, then do it again while visible. Notice the dimensions only update while the window is visible.

        1. quicklayoutvtest-1.qml
          0.7 kB
        2. recording.mp4
          969 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            smd Jan Arve
            jirauser69088 user-b4e76 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes