Hi everyone,
I'm beginner in coding.
May anyone help me how should I use SetSamples() Function?
:
Qt Code:
  1. {
  2. ui->setupUi(this);
  3.  
  4. QwtPlot *BPlot = new QwtPlot(this);
  5. setCentralWidget(BPlot);
  6.  
  7. QwtPlotCurve *curve1 = new QwtPlotCurve("Curve 1");
  8. double frequency=10.288;
  9. double amp=10.288;
  10. int count=10;
  11.  
  12. curve1->setSamples(frequency,amp,count);
  13. curve1->attach(BPlot);
  14. BPlot->replot();
  15. }
  16. MainWindow::~MainWindow()
  17. {
  18. delete ui;
  19. }
To copy to clipboard, switch view to plain text mode 
no matching function for call to 'QwtPlotCurve::setSamples(double&, double&, int&)'
curve1->setSamples(frequency,amp,count);