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

Layout.fillWidth sometimes has no effect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.8.0
    • 6.7, 6.8
    • Quick: Layouts
    • None
    • All

      in the 6.8 branch today's checkout (other people seem to encounter this in 6.7 branch as well), sometimes the attached property Layout.fillWidth has no effect.

       

      In the attached example the item "body" has a Layout.preferredWidth of 200 and fillWidth: true

       

      however its width always stays 200 even if fillWidth is true and resizing the window won't have any effect. the green rectangle on top which has just fillWidth but no other hints will resize correctly, body and all its containing layout won't

        1. fillWidthBug2.qml
          1 kB
          Marco Martin
        2. Screenshot_20240610_023556.png
          51 kB
          Marco Martin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            notmart Marco Martin
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes