On Thursday, 19. February 2009 22:36:08 Ricardo wrote:
> Thanks a lot Benjamin,
>
> now it runs without complaining but when i pass the mouse over the
> applet it doesn't show the tooltip :(
> is there any other thing i should do?
Implementing it in hoverMoveEvent did the trick for me.

        def init(self):
                self.connect(self, SIGNAL("hoverMoveEvent"), 
self.hoverMoveEvent)

        def hoverMoveEvent(self, event):
                tooltipContent = Plasma.ToolTipContent(QString("prueba"), 
QString("eoooo 1"), KIcon() )
                Plasma.ToolTipManager.self().setContent(self.applet, 
tooltipContent)

Maybe it is even sufficient to just implement hoverEnterEvent .

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to