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

Column padding is ignored if child is anchored

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.12.12, 6.4.2
    • Quick: Layouts
    • None

    Description

      import QtQuick 2.12
      import QtQuick.Window 2.12
      import QtQuick.Controls 2.12
      Window {
          width: 200
          height: 100
          visible: true
          title: qsTr("Test")    
          readonly property int bw: 20    
          Rectangle {
              anchors.fill: parent
              color: "transparent"
              border {
                  width: bw
                  color: "yellow"
              }
          }    
          Column {
              anchors.fill: parent
              padding: bw        
              Label {
                  text: "TEST"
                  anchors.left: parent.left // CULPRIT
              }
          }
      } 

      Attachments

        1. expected.png
          expected.png
          2 kB
        2. bug.png
          bug.png
          2 kB

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            alervd Alexander Dyagilev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: