setAccessibleDescription() on tooltip window
-
wrote on 28 Dec 2021, 14:15 last edited by
I have a BalloonTip class derived from QWidget. The constructor looks like this:
BalloonTip::BalloonTip( QWidget* parent, const QString& title, const QString& message ) : QWidget( parent, Qt::ToolTip ) { ... }
I pop this windows up at certain points to provide guidance first time Easy Data Transform users. However this window does not work well with the Mac VoicerOver application used by some non-sighted and partially sighted users. It just says 'new window' when the balloon window appears. Calling setAccessibleDescription() or setAccessibleName() makes no difference. It works better if I pass Qt::Dialog instead of Qt:ToolTip in the constructor. But then it looks all wrong. Any ideas?
-
wrote on 28 Dec 2021, 14:33 last edited by AndyBrice
Also 'New Window' (with no description) seems to appear whenever a standard tooltip appears, which is really unhelpful for people using VoiceOver.
-
Hi,
Which version of Qt are you using ?
Can you provide a minimal compilable example that shows this behaviour ? -
Hi,
Which version of Qt are you using ?
Can you provide a minimal compilable example that shows this behaviour ?wrote on 29 Dec 2021, 09:16 last edited byHi @SGaist
I am on Qt 5.15.2 and testing on macOS 10 and 11. Just Press Cmd-f5 to enter voice over mode and hover over any QWidget with tooltip text (e.g. a QPushButton). It just says 'new window' when the tooltip window appears. This is not helpful for users. It should probably say nothing.
3/4