Important: Please read the Qt Code of Conduct -

setAccessibleDescription() on tooltip window

  • 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?

  • Also 'New Window' (with no description) seems to appear whenever a standard tooltip appears, which is really unhelpful for people using VoiceOver.

  • Lifetime Qt Champion


    Which version of Qt are you using ?
    Can you provide a minimal compilable example that shows this behaviour ?

  • Hi @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.

Log in to reply