ich möchte eine Testkurve Darstellen, leider bekomme ich immer folgende Fehlermeldung:
error: no matching function for call to 'QwtPlotCurve::setSamples(QPolygonF*&)'
eigentlich sollte das funktionieren, bzw. das hat es zwischenzeitlich auch.
Code: Alles auswählen
int MainWindow::setupPlot()
{
myplot = new QwtPlot(this);
myplot->move(QPoint(0,0));
//myplot->setTitle("Curve");
myplot->setCanvasBackground(Qt::white);
myplot->setFixedSize(800,375);
mycurve = new QwtPlotCurve();
mycurve->setTitle("Line");
mycurve->setPen(QPen(Qt::black));
mycurve->setRenderHint(QwtPlotItem::RenderAntialiased, true);
points = new QPolygonF();
points->append(QPointF( 0.0, 4.4 ));
points->append(QPointF( 1.0, 9.1 ));
points->append(QPointF( 2.0, 6.2 ));
points->append(QPointF( 3.0, 2.3 ));
points->append(QPointF( 4.0, 5.4 ));
points->append(QPointF( 5.0, 6.8 ));
points->append(QPointF( 6.0, 3.8 ));
mycurve->setSamples(points); <---------- Fehler!
mycurve->attach(myplot);
myplot->show();
myplot->setAutoReplot(true);
return 0;
}