Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Manually Setting NSAccessibility Value on Mac for QAccessibleWidget?
QtWS25 Last Chance

Manually Setting NSAccessibility Value on Mac for QAccessibleWidget?

Scheduled Pinned Locked Moved Solved General and Desktop
macaccessibility
5 Posts 2 Posters 943 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    ChiK
    wrote on 29 Oct 2019, 11:08 last edited by
    #1

    Hi,

    I'm a VoiceOver user, and QAccessible seems to have limited implementations for NSAccessibility Protocol on MacOS.
    For example, if I set QAccessible:Help and examine it with accessibility inspector, none of the NSAccessibility properties has that value. Also VoiceOver doesn't read it if I press vo+shift+h which reads accessibilityHelp.
    Is there a way to manually set values for NSAccessibility Protocol such as accessibilityRoleDescription, accessibilityHelp, and so on?
    Being able to set NSAccessibility values will allow developers to improve accessibility on Mac immensely!
    Thank you for your help!

    C 1 Reply Last reply 11 Nov 2019, 02:07
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 29 Oct 2019, 20:54 last edited by
      #2

      Hi and welcome to devnet,

      What version of Qt are you using ?
      What version of of macOS are you running ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      C 1 Reply Last reply 1 Nov 2019, 00:29
      0
      • S SGaist
        29 Oct 2019, 20:54

        Hi and welcome to devnet,

        What version of Qt are you using ?
        What version of of macOS are you running ?

        C Offline
        C Offline
        ChiK
        wrote on 1 Nov 2019, 00:29 last edited by
        #3

        @SGaist I'm using qt 5.13.1 on MacOS 10.14.6.

        1 Reply Last reply
        0
        • C ChiK
          29 Oct 2019, 11:08

          Hi,

          I'm a VoiceOver user, and QAccessible seems to have limited implementations for NSAccessibility Protocol on MacOS.
          For example, if I set QAccessible:Help and examine it with accessibility inspector, none of the NSAccessibility properties has that value. Also VoiceOver doesn't read it if I press vo+shift+h which reads accessibilityHelp.
          Is there a way to manually set values for NSAccessibility Protocol such as accessibilityRoleDescription, accessibilityHelp, and so on?
          Being able to set NSAccessibility values will allow developers to improve accessibility on Mac immensely!
          Thank you for your help!

          C Offline
          C Offline
          ChiK
          wrote on 11 Nov 2019, 02:07 last edited by
          #4

          Modifying the following QT source files and building from the source worked.
          qtbase/src/plugins/platforms/cocoa/
          qcocoaaccessibility.mm
          qcocoaaccessibilityelement.mm

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 11 Nov 2019, 22:39 last edited by
            #5

            Glad you found a solution !

            Would you mind sharing the changes you made ?
            You might even consider including them in Qt directly ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved