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

iOS: Accessibility elements in native subviews ignored

XMLWordPrintable

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

      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.

        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
            frank.osterfeld Frank Osterfeld
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes