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

ScrollView Padding Property

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.7.0 RC
    • None
    • Windows

       

      The padding property isn't working as expected (coming from Qt 5.12). It seems to only add padding to the top and left edges, but not the right and bottom edges as the documentation states.

       

      For the right and bottom edges, I have to assign the rightPadding and bottomPadding properties.

       

      import QtQuick
      import QtQuick.Controls
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          ScrollView {
              anchors.fill: parent
              padding: 10
              Rectangle {
                  width: 900
                  height: 900
                  color: "red"
              }
          }
      }
      

       

        For Gerrit Dashboard: QTBUG-123631
        # Subject Branch Project Status CR V

            morteza.jamshidi Morteza Jamshidi
            kidsault kidsault
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change