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

Details

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

    Description

      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.

      Attachments

        1. quicklayoutvtest-1.qml
          0.7 kB
        2. recording.mp4
          969 kB

        Issue Links

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

          Activity

            People

              smd Jan Arve
              outfoxxed outfoxxed -
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes