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

ListView cannot be scrolled horizontally

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.15.0
    • None
    • All

      Setting the content width/height is uniquely greater than the ListView itself allows vertical scrolling but not the horizontally one.

      Example:

      Window {
          id: window
          visible: true
          width: 400
          height: 400
          ListView {
              anchors.fill: parent
              model: 100
              delegate: Text {
                  text: "aaaaaaaaa bbbbbbb cccccc ddddd eeeee ffff gggg hhhh iii ggggg" + index
              }
              ScrollBar.vertical: ScrollBar {}
              ScrollBar.horizontal: ScrollBar {}
          }
      }

      Both the scrollbars are visible but only vertical scrolling is available.

       

        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
            folibis ruslan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes