[PySide] suppressing tooltips of all widgets

Frank Rueter | OHUfx frank at ohufx.com
Thu Jan 12 01:45:49 CET 2017


Ignore me. I simply need to install an event filter on main main widget.
For some reason I thought I had tried that before but I hadn't, and it 
works perfectly.

On 12/01/17 12:02 PM, Frank Rueter | OHUfx wrote:
> Hi all,
>
> what is the best way to suppress tool tips for all widgets in an app?
> I have been asked to implement a user preference for showing tool tips 
> and am reluctant to modify every single widget to check the preference 
> before showing the tooltip.
>
> I had hoped that I can maybe intercept the QHelpEvent on the top level 
> widget, but that doesn't catch the child widget's events.
>
> I also looked at intercepting topLevelWidget.childEvent(), but that is 
> not recursive, so wouldn't catch all the nested widgets (and would 
> probably lead to performance issues as well).
>
> Is there any way to intercept a any tool tip even from anywhere in the 
> app?
>
> Cheers,
> frank
>
>
> -- 
> ohufxLogo 50x50 <http://www.ohufx.com> 	*vfx compositing 
> <http://ohufx.com/index.php/vfx-compositing> | *workflow customisation 
> and consulting <http://ohufx.com/index.php/vfx-customising>* *
>
>
>
> _______________________________________________
> PySide mailing list
> PySide at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/pyside

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20170112/9a930e8b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 2666 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20170112/9a930e8b/attachment.png>


More information about the PySide mailing list