Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Help completely disabling accessibility

Help completely disabling accessibility

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 1.1k 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.
  • O Offline
    O Offline
    Obsess
    wrote on 19 Dec 2021, 18:58 last edited by
    #1

    Hi, we are seeing crashes happening in our app on Android when people have accessibility aides enabled on their phones.

    These same exact issues are already known and logged in bugs like this:
    https://bugreports.qt.io/browse/QTBUG-95974
    https://bugreports.qt.io/browse/QTBUG-95764

    Although not ideal, I'd like to know the best way to completely disable accessibility in Qt until these bugs are fixed.

    So far we've tried adding Accessible.ignored: true to every interactable and content item in QML but that didn't work.

    Tried setting a single independent QObject to as the accessible root in QAccessible::setRootObject.

    Also set up our own accessibility interface factory and used QAccessible::installFactory() to return interfaces that try to direct the system not to do anything.

    In all cases, we still see the issues.

    Is there no way to get this to stop without rebuilding Qt on every platform we use?

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      QtFvGr
      wrote on 5 Dec 2024, 10:31 last edited by
      #2

      Although this is a very old question I think it's worth to mention this (I searched 3+ days to find a solution).
      In Qt 6.8 if you set this environment variable it causes the Accessibility manager in QtAccessibilityDelegate.java to completely disable itself:
      qputenv("QT_ANDROID_DISABLE_ACCESSIBILITY", "1");

      1 Reply Last reply
      1

      • Login

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