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

iOS: Accessibility elements in native subviews ignored

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.8.0, 6.9.1, 6.10.0 Beta1
    • Core: Other
    • None
    • iOS/tvOS/watchOS

    Description

      In my application, a native WKWebView is added to the main UIView, similar to how QtWebView integrates WKWebView.

      When enabling VoiceOver, with both my custom WKWebView and QtWebView, accessibility elements in the browser component (controls from the HTML like line edits and buttons) are ignored and cannot be properly selected.

      This is because QUIView overrides the default accessibilityElements implementation with its own, but ignores subviews.

      The attached patch fixes the issue for me, by including subviews in the reported `accessibilityElements`. It only fixes it for my custom WKWebView item though, not for my QtWebView test case, so that's why I haven't proposed it on Gerrit yet.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            frank.osterfeld Frank Osterfeld
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes