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

ScrollView Padding Property

    XMLWordPrintable

Details

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

    Description

       

      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"
              }
          }
      }
      

       

      Attachments

        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
            kidsault kidsault
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes