[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Modifying tooltip before it is shown
From:       detlev <detlev () die-offenbachs ! de>
Date:       2010-04-24 17:17:55
Message-ID: 201004241917.55826.detlev () die-offenbachs ! de
[Download RAW message or body]

On Samstag, 24. April 2010, Matt Newell wrote:
> 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 

I can't find a documentation of this event method.

> 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    PyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
> 


-- 
Detlev Offenbach
detlev@die-offenbachs.de
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic