<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'DejaVu Sans'; font-size:9pt; font-weight:400; font-style:normal;">On Thursday, 19. February 2009 22:36:08 Ricardo wrote:<br>
&gt; Thanks a lot Benjamin,<br>
&gt;<br>
&gt; now it runs without complaining but when i pass the mouse over the<br>
&gt; applet it doesn't show the tooltip :(<br>
&gt; is there any other thing i should do?<br>
Implementing it in <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qgraphicswidget.html#hoverMoveEvent"><span style=" text-decoration: underline; color:#e85290;">hoverMoveEvent</span></a> did the trick for me.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>        <span style=" font-weight:600;">def</span> init(<span style=" color:#008000;">self</span>):<br>
                <span style=" color:#008000;">self</span>.connect(<span style=" color:#008000;">self</span>, <span style=" font-weight:600; color:#00c0c0;">SIGNAL</span>(<span style=" color:#c00000;">"hoverMoveEvent"</span>), <span style=" color:#008000;">self</span>.hoverMoveEvent)<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>        <span style=" font-weight:600;">def</span> hoverMoveEvent(<span style=" color:#008000;">self</span>, event):<br>
                tooltipContent = Plasma.ToolTipContent(QString(<span style=" color:#c00000;">"prueba"</span>), QString(<span style=" color:#c00000;">"eoooo 1"</span>), KIcon() )<br>
                Plasma.ToolTipManager.<span style=" color:#008000;">self</span>().setContent(<span style=" color:#008000;">self</span>.applet, tooltipContent)<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Maybe it is even sufficient to just implement <a href="http://api.kde.org/pykde-4.2-api/plasma/Plasma.Applet.html#obj3077997036"><span style=" text-decoration: underline; color:#e85290;">hoverEnterEvent</span></a> .</p></body></html>