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

iOS A11Y VoiceOver: QAccessible::Heading not implemented as "Heading"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P1: Critical
    • Resolution: Unresolved
    • Affects Version/s: 5.15.4
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      iOS 14.4.2 on iPhone 6s with Qt 5.15.4
    • Platform/s:
      iOS/tvOS/watchOS

      Description

      Context

      Items on iOS Phone with VoiceOver activated should be shown as dedicated elements a blind person can navigate through. It has to fulfill requirements of WCAG 2.0 / WCAG2ICT

      Expectations

      • Heading items should be reported as "[Name], Heading"

      Observation

      • Only the text in Accessible.name is reported, but not the postifx ", Heading". This was marked as "Critical impact" in an ADA audit we had for our iOS app.

       Code

      import QtQuick 2.15
      import QtQuick.Window 2.15
      
      Window {
          visible: true
              Text {
                  text: "Hello"
                  Accessible.name: text
                  Accessible.role: Accessible.Heading
              }
          }
      }
      

      This is a native implementation in SwiftUI for behaviour comparison. See attached video for app in action

      import SwiftUI
      
      struct ContentView: View {
          @State private var text: String = "";
          var body: some View {
              VStack {
                  Text("Title").accessibility(addTraits:[.isHeader])
                  TextField("Demo", text: $text)
                  TextField("Demo", text: $text).accessibility(hint: Text("Description"))
              }
          }
      }
      

        Attachments

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

          Activity

            People

            Assignee:
            frederik Frederik Gladhorn
            Reporter:
            michl86 Michael Piendl
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes