On Saturday 24 April 2010 03:53:46 detlev wrote:
> Hi,
>
> I would like to show the keyboard shortcut for a QAction in the tooltip.
> What would be the best way to amend the tooltip just before it is shown?
>
> Regards,
> Detlev

You can intercept QWidget's ToolTip event and change the tooltip text there.  
Unfortunately there is no event delivered to QActions, only QWidgets, so it 
may take some work depending on what widget is handling the QAction.

Matt
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to