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

Accessibility elements are missing in 5.14

    XMLWordPrintable

Details

    • macOS

    Description

      We noticed this during an upgrade from Qt 5.12.8 to 5.14.2. I tried Qt 5.13.2 which works as expected.

      Our automated tests no longer work as they use Apple's accessibility APIs to interact with the GUI.

      We're also unable to use Apple's VoiceOver to navigate elements within the window.

      To reproduce:

      1. Create a new Qt Widgets project on macOS Catalina with Xcode 11 installed
      2. Add a push button and set its accessibility name to something
      3. Run the program
      4. Try to use the accessibility inspector to try to select the button - It can't
      5. Use the accessibility inspector to look at the program's element hierarchy - the button isn't in it

      I've attached screenshots showing the different element trees between the two builds.

      Attachments

        1. 5.12.8.png
          5.12.8.png
          394 kB
        2. 5.14.2.png
          5.14.2.png
          329 kB
        3. correct_detection_qt5.12.8.png
          correct_detection_qt5.12.8.png
          127 kB
        4. faulty_detection_qt_5.15.0.png
          faulty_detection_qt_5.15.0.png
          107 kB
        5. image-2020-07-08-15-50-02-867.png
          image-2020-07-08-15-50-02-867.png
          526 kB

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            sjoruk Steven Joruk
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: