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

ListView cannot be scrolled horizontally

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 5.15.0
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      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

              Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              folibis ruslan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes