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

Layout minimum size does not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.0, 6.7.0, 6.7.2
    • Quick: Layouts
    • None
    • Wayland (Hyprland)
      Linux (NixOS unstable b73c2221a46c13557b1b3be9c2070cc42cf01eb3)

    Description

      It is not possible to constrain a layout to be smaller than the preferred size of its children, and Layout.minimumWidth has no effect. Setting implicit size instead of preferred size makes no difference.

      Attached is a sample containing rectangles anchored in various ways inside the layout. When the size of the layout is smaller than their preferred width, the layout will still use space according to the largest child's preferred size, positioning all others accordingly. It should shrink the items to fit the available space.

       

      Tested 6.7.2, 6.7.0, 6.6.0

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            outfoxxed outfoxxed -
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes