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

Page should not self-identify as QAccessible::PageTab

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.9.0
    • Quick: Controls 2
    • None
    • Linux/Wayland

    Description

      QQC2's Page self-identifies as a PageTab in qquickpage.cpp:462:

      QAccessible::Role QQuickPage::accessibleRole() const
      {
          return QAccessible::PageTab;
      }
      

      This seems semantically incorrect: PageTab is for tabs in PageTabLists; it's what you use to switch tabs, not the tab contents.

      See the QAccessible::Role documentation:

      .bq QAccessible::PageTab 0x00000025 A page tab that the user can select to switch to a different page in a dialog.

      or the AT-SPI documentation:

      .bq 37 - ATSPI_ROLE_PAGE_TAB: An object that is a child of a page tab list.

      It's not quite clear to me what the correct role should be - possibly Pane or Grouping. But PageTab seems clearly wrong, and misleading as it makes it unclear whether the user is on the tab button that opens/switches to the page, or the page itself.

      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
            cwo Christoph Wolk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes