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. Accessibility permissions not granted when asked from a Qt application on macOS
QtWS25 Last Chance

Accessibility permissions not granted when asked from a Qt application on macOS

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 766 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
    cristeab
    wrote on last edited by
    #1

    Hi

    I have developed a Qt application on macOS 10.12 with Qt5.9.1. The sources are mixed, with Objective-c code that uses AppKit classes. This requires Accessibility Access and a dialog is shown when the application is run in order to allow the user to grant permissions from "Security & Privacy" -> "Accessibility".

    First problem is that even after I select my application from the list in order to grant privileges, the same message is shown when rerunning the application.

    Second problem is that in the list the application icon is not shown, instead a black icon (terminal) is shown. Not sure if this problem is related to the first one.

    The application bundle is generated with macdeployqt.

    Running the application from QtCreator has the accessibility rights, because QtCreator has these rights, so I suspect that the problem comes from the way the application bundle is generated.

    Can you help with these issues ?

    thanks
    Bogdan

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Can you provide a minimal code sample that reproduce this behaviour ?

      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