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

PathView elements don't handle keyboard navigation, regardless of focus and visibility

XMLWordPrintable

    • 4a01dc326faa0bc7d61f67e8848e194c3c3b99c5

      Hello,

      I have encountered a strange behaviour of PathView elements: they don't handle keyboard navigation automatically. Consider the standard example pathview-example.qml: even if the focus property of the PathView is set to true, you can't browse the PathView using keys - only flicking with the mouse works.

      It seems to me that this is inconsistent with other views like ListView, that automatically handle key navigation.

      I can workaround this issue by defining these additional properties in the PathView:

      Keys.onLeftPressed: view.decrementCurrentIndex()
      Keys.onRightPressed: view.incrementCurrentIndex()

      Is this intended behaviour? I'd say that the PathView should handle key navigation automatically just like ListView elements.

      Thanks in advance!

        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