Hello,

I'm sorry if I'm raising a stupid qusetion but I ran throught the forum and could not find any answer that enables me to solve my problem...

I'm trying to use Qwt in order to create a widget that will enable me to interpolate a Gamma curve and modify some points...

So thanks to the event_filter example I was abble to copy the canvaspicker that makes the modification of points possible...

But now that I have my curve... how can I retrieve all the values ?

Qt Code:
  1. Plot::Plot(QWidget *parent):
  2. QwtPlot(parent)
  3. {
  4. tab_x[0] = 0; (----) to tab_x[10] = 4096;
  5. tab_y[0] = gamma(Tab_x[0]) = 0 to tab_y[10] = gamma(Tab_x[10]) (= 1024)
  6.  
  7. setAxisScale(QwtPlot::xBottom, 0.0, 4200,100);
  8. setAxisScale(QwtPlot::yLeft, 0.0, 1050.0,100);
  9.  
  10. axisScaleDraw(QwtPlot::xBottom)->setLabelRotation(90);
  11. axisScaleDraw(QwtPlot::xBottom)->setLabelAlignment(Qt::AlignRight);
  12. setAxisFont(QwtPlot::xBottom,QFont("MS Shell Dlg 2",9));
  13.  
  14. curve = new QwtPlotCurve();
  15.  
  16. curve->setStyle(QwtPlotCurve::Lines);
  17. curve->setCurveAttribute(QwtPlotCurve::Fitted, true);
  18. curve->setPen(QColor(Qt::red));
  19. curve->setSymbol(QwtSymbol(QwtSymbol::Cross,Qt::gray,QColor(Qt::red), QSize(8, 8)));
  20.  
  21. curveFitter = new QwtSplineCurveFitter();
  22. curveFitter->setFitMode(curveFitter->ParametricSpline);
  23. curveFitter->setSplineSize(100);
  24. curve->setCurveFitter(curveFitter);
  25.  
  26. curve->setData(tab_x, tab_y, sizeof(tab_x) / sizeof(tab_x[0]));
  27. curve->attach(this);
  28.  
  29. replot();
  30. }
To copy to clipboard, switch view to plain text mode 

Thansk a lot for any help....I'm turning crazy ....(and sorry if it is stupid)