PDA

View Full Version : Qwt Plots and User Interaction



gulendur
21st May 2011, 17:49
Hi everybody,

I'm trying to use Qwt to present graphs to a user, and I would like the user to be able to select two points on the graph in one of two ways (The Graph is a QwtPlot with a QwtCurvePlot attached to it...):

1. The user runs the mouse over a given point and the point increases in size (to let the user know they can select that point).

2. A slider bar on the bottom allows the user to slide a bar across the graph. When the bar goes over a point, the point expands in size so the user knows the slider is within valid range of the point.

Either way, when the user selects a valid point, a bar appears through that point indicating that this has been selected as an endpoint.

The first one appears to be an easier implementation, but how would I go about doing the size increase on a mouse over? I assume I can use the EventFilter example as a guide on how to handle the actual selection and line drawing.

Thanks!