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

[a11y] Programmatically setting screenreader focus does not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7.3
    • None
    • macOS, Windows

    Description

      We're trying to set the screenreader's focus to some useful text if a new View is shown.
      This should help the users to better navigate and unterstand the App.
      However, this does not work reliably when calling the forced focus change in Component.onCompleted.

      See attached MWE App.qml to apprehend what we're trying to achieve. Upon a View change, the "helpful" text should automatically be focussed. Moving the screenreader's focus only works if it's called delayed using a QML Timer.

      Furthermore, as shown in Screen Recording 2024-10-30 at 09.34.19.mov (on macOS), the screenreader's focus is retained in the "invisible" StackView initialItem after clicking the button. It is possible to further "click" this button with the VoiceOver combination "CTRL + OPTION + Space", more Views are pushed in this case. One needs to pop these as many times as they are pushed before returning to the initialItem (also shown in the screencast).

      Are we missing something here?

      Attachments

        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:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes