Is it possible to turn all tool tips on and off globally in an application?
If so how?
Printable View
Is it possible to turn all tool tips on and off globally in an application?
If so how?
am not sure if it possible.
But you can try catching the tooltip event in QWidget::event using QEvent::ToolTip, and ignore the event.
hope this helps :)
Furthermore, installing an event filter on the application object gives you access to all events of the whole application. Notice also Qt::WA_AlwaysShowToolTips.
Thanks....
For future reference for others this is what I did.
I add this function to my app...
Note I am using a CheckBox to determine if tool tips need to be disabled.Code:
{ if(cbToolTips->isChecked() == true) { { return true; } else { } } else { } }
In the header file I add this..
Then I install the filter like this
Code:
qApp->installEventFilter(this);
I hope this helps others.