Re: QwtPicker::move(const QPoint &)
Brought to you by:
rathmann
From: Matthias R. <mat...@ip...> - 2013-09-30 12:41:32
|
On 30/09/13 12:42, Gianni Ambrosio wrote: > Il 9/28/2013 3:32 PM, Uwe Rathmann ha scritto: >> Is QwtPicker the right class for your use case ? > Honestly I have a page with different plots and I need to show a > vertical marker on the plot where the mouse is located, and move a > marker on the other plots of the page accordingly (and moreover showing > values of curves). > For that reason I chose a QwtPlotPicher, to reimplement > widgetMouseMoveEvent(). > I had once implemented something similar, but I just used some sort of a "manager" class who would be assigned as receiver of mouseMoved() and panned() signals and would then automatically (by calling appropriate methods) move "markers" in other plots, that are related to the one where the mouse got moved (or something got panned). This way, the number of methods I needed to reimplement was kept to a minimum. Maybe this helps your cause. matthias |