temis
21st July 2012, 17:16
I'm trying to implement in a plot these behaviours:
left click: move a vertical marker to the clicked position
left click and move: move the marker following the mouse
right click: show a context menu with a zoom voice (not enabled in this case)
right click and move: drag a selection and once that the right mouse is relased open the context menu with the zoom voice (which now are enabled)
I know that I need to use QwtPlotPicker, QwtPlotMarker and QwtPlotZoomer but I don't know how.
Thanks in advice for the help
left click: move a vertical marker to the clicked position
left click and move: move the marker following the mouse
right click: show a context menu with a zoom voice (not enabled in this case)
right click and move: drag a selection and once that the right mouse is relased open the context menu with the zoom voice (which now are enabled)
I know that I need to use QwtPlotPicker, QwtPlotMarker and QwtPlotZoomer but I don't know how.
Thanks in advice for the help