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

Programmatically setting focus does not move VoiceOver

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS
    • 7a512d126 (dev), 1c8cb94e4 (6.7), 6e434de70 (6.6), c14bbd243 (tqtc/lts-6.5)

    Description

      It does not seem to be possible to move the VoiceOver's focus to an arbitrary QML Item programmatically. This would be useful to have VoiceOver read some helpful Text (which is not necessarily the first Item in the a11y hierarchy) upon entering a new View.

      I'm trying to achieve this by calling forceActiveFocus() on whatever Item seems reasonable. The Item's focus property does change to true but the active element of VoiceOver does not change.

      Attached is a MWE which does move the focus of Android's TalkBalk when clicking the button. Is there any other way to achieve this on iOS?

      Attachments

        1. Main.qml
          0.6 kB
          Jan Möller
        2. main.cpp
          0.4 kB
          Jan Möller
        3. CMakeLists.txt
          0.9 kB
          Jan Möller
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vestbo Tor Arne Vestbø
            janmoeller Jan Möller
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes