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

ListView cannot be scrolled horizontally

    XMLWordPrintable

Details

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

    Description

      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.

       

      Attachments

        Issue Links

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes