Help completely disabling accessibility
-
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-95764Although 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?
-
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");