Plot a QwtPlotCurve in a QwtWidgetOverlay
Hi,
I'm new with QWT but I'm very enthousiastic with this framework. I'm already able to plot a lot of curves having a lot of points. But now I'd like to be able to drag (shift using the mouse) a selected curve. I'm able to do that in the QwtPlot but I have to replot() all curves with mouse move Event which is a bit slow when a lot of curves are displayed.
Reading this QwtWidgetOverlay Example, I'm able draw lines smoothly while a lot of curves are displayed.
So I wonder if it's possible to plot/draw curve inside the overlay/QPainter which could avoid a huge replot();
Thanks in advance
Re: Plot a QwtPlotCurve in a QwtWidgetOverlay
Have a look at the itemeditor example. It is for shape items, but the idea how to use a widget overlay for dragging is shown there.
Uwe
Re: Plot a QwtPlotCurve in a QwtWidgetOverlay
Hi Uwe,
Thanks for your reply. I had a look on this example and I probably can use this technique.
But I'd like to know if there's any way to plot a qwtPlotCurve into the overlay or the associated Painter (in parameter of virtual void drawOverlay( QPainter *painter ) const ) !?
Thanks for your reply.