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

PathView key navigation scrolling sometimes chooses the wrong direction

XMLWordPrintable

    • ec288ed3720ab3fdc41f3c3698fe58fb322ad090

      Hello,

      please consider the attached example path_test.qml. It features a PathView with key navigation enabled and manual calls to increment/decrementCurrentIndex to handle it.

      Please try to scroll to the right (right arrow): the first time you get the expected scrolling direction, the second time the PathView unexpectedly scrolls to the left . If you instead scroll to the left, the scrolling direction of the PathView is always the expected one.

      Now please remove one of the ListElements in the ListModel: you will see that now the PathView always scrolls to the right, no matter which key was pressed, left or right.

      These glitches disappear when you have more than three items in the PathView.

      I think that the scrolling direction should always be consistent with the method called.

      Thanks in advance.

        1. path_test.qml
          0.7 kB
          Lorenzo Mancini
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            martjone Martin Jones (closed Nokia identity) (Inactive)
            lmancini Lorenzo Mancini
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes