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

Wrong child size when resizing a ColumnLayout with both anchors and "height" set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.10.0
    • Quick: Layouts
    • None

    Description

      ApplicationWindow {
          visible: true
          width: 640
          height: 480
      
          ColumnLayout
          {
              id: layout
              anchors.fill: parent
              anchors.margins: spacing
              height: parent.height/3
              Rectangle
              {
                  Layout.fillHeight: true
                  Layout.fillWidth: true
              }
              Rectangle
              {
                  Layout.fillHeight: true
                  Layout.fillWidth: true
              }
          }
      
          Rectangle
          {
              anchors.fill: layout
              color: "transparent"
              border.color: "red"
          }
      }

      On resize, the Rectangle contained in the ColumnLayout are reiszed as if the ColumLayout's height was 160.

      Attachments

        Issue Links

          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
              yoann Yoann Quenach de Quivillic
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes