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

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

XMLWordPrintable

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

      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.

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

              Created:
              Updated:

                There are no open Gerrit changes