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

Nesting focus scopes leads to unexpected Tab navigation behavior

XMLWordPrintable

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

      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

        1. focusScopes.qml
          0.6 kB
          Marco
        2. focusScopes2.qml
          0.6 kB
          Marco
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            mart Marco
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes