Thanks Richard, here [1] I found this: <br><br><i> mouseDoubleClickEvent() - not quite as obvious as it might seem.
If the user double-clicks, the widget receives a mouse press event
(perhaps a mouse move event or two if he/she does not hold the mouse
quite steady), a mouse release event and finally this event. It is <em>not possible</em> to distinguish a click from a double click until you've
seen whether the second click arrives. (This is one reason why most GUI
books recommend that double clicks be an extension of single clicks,
rather than trigger a different action.)</i><br><br> I still get two release events in QgsMapTool class. <br><br>I'm trying to do a Measure Tool, and it works. The only issue is with that event. In QGIS the measure tool draws a rubberband and the mouse right button stops the drawing, but I want the double click stops the drawing.<br>
<br>Germán<br><br>[1] <a href="http://www.jtz.eggs.pl/Inne/QT-Tutorial/qwidget.html">http://www.jtz.eggs.pl/Inne/QT-Tutorial/qwidget.html</a><br><br>-- <br>-----------<br> |\__ <br>(:>__)(<br> |/ <br><br>Soluciones Geoinformáticas Libres <br>
<a href="http://geotux.tuxfamily.org/">http://geotux.tuxfamily.org/</a><br>