Hi everyone,
I'm beginner in coding.
May anyone help me how should I use SetSamples() Function?
:
{
ui->setupUi(this);
setCentralWidget(BPlot);
double frequency=10.288;
double amp=10.288;
int count=10;
curve1->setSamples(frequency,amp,count);
curve1->attach(BPlot);
BPlot->replot();
}
MainWindow::~MainWindow()
{
delete ui;
}
{
ui->setupUi(this);
QwtPlot *BPlot = new QwtPlot(this);
setCentralWidget(BPlot);
QwtPlotCurve *curve1 = new QwtPlotCurve("Curve 1");
double frequency=10.288;
double amp=10.288;
int count=10;
curve1->setSamples(frequency,amp,count);
curve1->attach(BPlot);
BPlot->replot();
}
MainWindow::~MainWindow()
{
delete ui;
}
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);
Bookmarks