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

Item views report accessible name for any type of string information except Description

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.7.3, 6.10.0 FF
    • None

      If one sets an accessible name for an item view then Qt reports the accessible name to assistive tools as Name (as expected), but also as Help text, as Value, as Accelerator and as any other type of string information (https://doc.qt.io/qt-6/qaccessible.html#Text-enum) except Description. On Windows, this makes NVDA read the accessible name two or three times when the item view gets focus.

      Looking at the code it's clear why this happens:

       

      QString QAccessibleTable::text(QAccessible::Text t) const
      {
          if (t == QAccessible::Description)
              return view()->accessibleDescription();
          return view()->accessibleName();
      }

       

      https://code.qt.io/cgit/qt/qtbase.git/tree/src/widgets/accessible/itemviews.cpp#n592

      I will submit a patch to codereview.qt-project.org that fixes the problem.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            ikloecker Ingo Klöcker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change