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

QAccessible::Help Is Not Mapped to VoiceOver on Mac

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.15.0
    • None
    • macOS
    • 59836c96804855745bda4cb9090423d62f90ded0 (qt/qtbase/dev)

    Description

      QAccessible::Help is not being sent to VoiceOver on MacOS.
      If you insert the following method in 'Qt/5.15.0/Src/qtbase/src/plugins/platforms/cocoa/qcocoaaccessibilityelement.mm', you can send QAccessible::Help to VoiceOver as accessibilityHelp.

      - (NSString *) accessibilityHelp {
       QAccessibleInterface *iface = QAccessible::accessibleInterface(axid);
       if (!iface || !iface->isValid())
       return nil;
       if (iface->text(QAccessible::Help) != nil) {
       return iface->text(QAccessible::Help).toNSString();
       }
       return nil;
      }
      
      

      VO will automatically read the help message after a delay specified in VO setting.
      Also you can read it manually with vo+shift+h.

      Attachments

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

        Activity

          People

            smd Jan Arve
            chibop Chi Kim
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change