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

ListView and GridView keyboard navigation doesn't use FocusReasons

    XMLWordPrintable

Details

    Description

      This problem prevents the visualFocus property of ItemDelegate, TabButton and other Qt Quick Controls from working when using keyboard navigation to change the current item in a ListView or GridView.

      The workaround is to disable ListView/GridView keyboard navigation, re-implement it using the Keys attached property and call currentItem.forceActiveFocus(Qt.TabFocusReason) when incrementing or currentItem.forceActiveFocus(Qt.BacktabFocusReason) when decrementing.

      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
              ndavis Noah Davis
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes