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

a11y: QFrame reports incorrect top-level role on Linux (AT-SPI2)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.7, 6.7.3, 6.8.0 RC, 6.9.0 FF
    • 6.9.0 FF
    • None
    • Debian testing, qtbase self-compiled from git dev as of commit 0231f33ad121a85368bb3f43273973b9632735dc
    • Linux/Wayland, Linux/X11
    • a19d66385 (dev), 32b0ff212 (6.8), 51ba0d995 (6.7), 978870bb1 (tqtc/lts-6.5)

    Description

      Using QFrame in an application results in wrong accessible roles being reported on the accessibility layer (AT-SPI2) on Linux: It is reported with role ATSPI_ROLE_FRAME, which means [1]:

      > A top level window with a title bar, border, menubar, etc.

      However, that does not fit for QFrame, which is semantically rather a container for other widgets. Having a non-top-level widget report the AT-SPI framerole  is misleading, and could e.g. confuse screen readers.

      Steps to reproduce:

      1) compile and run the attached sample program

      2) start Accerciser

      3) check the accessibility hierarchy of the app in Accerciser

      Actual result:

      Besides the QMainWindow which is (expectedly) reported as a "frame" on AT-SPI layer, there are more children with the frame role. (s.a. attached screenshot)

      Expected result:

      Only the QMainWindow which is actually a top-level window/frame should report that role on AT-SPI2 level.

       

      [1] https://docs.gtk.org/atspi2/enum.Role.html#frame

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            michaelweghorn Michael Weghorn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes