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

Tab order does not follow visual order

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.9.1
    • Quick: Controls 2
    • None
    • Android, iOS/tvOS/watchOS, macOS, Windows

    Description

      When navigating a simple QML ApplicationWindow with tab/backtab the focus order differs from the visual order.

      The order is menuBar > header > footer > contentItem whereas the visual order is menuBar > header > contentItem > footer.

      This behavior seems confusing. Is it by design?

      When using a screen reader the order seems correct with the exception of iOS (QTBUG-131404).

      import QtQuick
      import QtQuick.Controls
      
      ApplicationWindow {
      	id: root
      
      	flags: Qt.Window
      	visible: true
      
      	footer: FocusableText {
      		text: "This is the footer"
      	}
      	header: FocusableText {
      		text: "This is the header"
      	}
      	menuBar: FocusableText {
      		text: "This is the menuBar"
      	}
      
      	FocusableText {
      		text: "This is the actual content"
      	}
      
      	component FocusableText: Text {
      		activeFocusOnTab: true
      		font.bold: activeFocus
      	}
      }
      
      

      Attachments

        1. Item Order.png
          100 kB
          Jan Möller

        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
              janmoeller Jan Möller
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: