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

a11y: Window name reported to assistive technology doesn't match what's displayed when app name is set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.9.0 FF
    • 6.9.0 FF
    • None
    • Debian testing, qtbase + qtwayland self-compiled from git dev branches
    • Linux/Wayland, Linux/X11
    • ef72e9696 (dev), 5178606a9 (dev), 88ceef9e1 (dev)

    Description

      On Linux and Windows, Qt does not just set the window name explicitly set using e.g. `QWidget::setWindowName` for the actual window shown on screen, but appends the application name (see QPlatformWindow::setWindowTitle).

      As a consequence, a window e.g. has the title "MyApp" if that was set at the app name, and no window title was explicitly set.

      That logic is currently not applied on the accessibility layer, though, which is inconsistent and has the effect that e.g. screen reader users lack information that's available to sighted users.

      (Besides that, it also breaks logic that e.g. Accerciser currently has to match window information retrieved via AT-SPI2 with that retrieved from the window manager.)

       

      Steps to reproduce:

      1) Compile and run the attached sample program on Linux (either X11 or Wayland)

      2) Notice that "MyApp" is shown as window title

      3) start Accerciser and navigate to the top-level frame underneath the application object of the sample app

      Actual result:

      The frame is shown without any name in Accerciser (s. attached screenshot)

      Expected result:

      The accessible name should match what is displayed on screen, i.e. should be "MyApp".

      Attachments

        For Gerrit Dashboard: QTBUG-127563
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes