Closed GoogleCodeExporter closed 9 years ago
This is normal behavior of Qt events : because the event you get from Qt
contains the mouse position relative to the parent widget (which include the
axes: try and click on the axis in your script) and not to the plot canvas.
Attached is a modified version of your script which overload SelectTool
which uses guiqwt event mechanism (which itself plugs into Qwt eventfilter
allowing it to receive events' positions relative to the canvas and not the
plot).
Since the selecttool already has a behavior for LeftMouse click the tool in the
attached example is using shift-click instead.
Original comment by laubryc...@free.fr
on 7 Oct 2011 at 12:07
Attachments:
Original issue reported on code.google.com by
mail.t...@gmx.de
on 4 Oct 2011 at 2:46Attachments: