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

Nesting focus scopes leads to unexpected Tab navigation behavior

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.9.1
    • None

    Description

      When having the following structure:

      FocusScope {
      Button{
      id: button1
      }

      FocusScope {
      activeFocusOnTab: true
      FocusScope {
      Button {
      id: button2
      }

      Button {
      id: button3
      }
      ...

       

      Navigating around the ui with the Tab key, gives the following order:

      button1, button2, button3, button1, button3, button1, button3...

      with no way to navigate back to button2 without using Shift+Tab

      if the focusScope has activeFocusOnTab: false, the navigation order is as expected

       

      This is particularly a problem with QtQuickControls1, where the ScrollView component has exactly this structure

      Attachments

        1. focusScopes2.qml
          0.6 kB
        2. focusScopes.qml
          0.6 kB
        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
            mart Marco
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes