Hi,

I have a QPolygonF of points which I would like to pass to: qwt_plot_curve.h: void setSamples( const QVector< QPointF >& ) however I cannot seem to get the correct syntax:

essential code snippet:

QwtPlotCurve curve;
.
.
QPolygonF points;
.
.
points+=QPointF(xData, yData); // in loop
.
.
curve.setSamples(points);

My problem is that at link time I get the following error:

undefined reference to `QwtPlotCurve::setSamples(QVector<QPointF> const&)'

This is the only linker error all the other Qwt symbols are resolved.

nm shows that the available symbols are:

libqwt.so.6.3.0:000000000010df40 T QwtPlotCurve::setSamples(QList<QPointF> const&)
libqwt.so.6.3.0:000000000010def0 T QwtPlotCurve::setSamples(QwtSeriesData<QPointF>*)
libqwt.so.6.3.0:000000000010e588 T QwtPlotCurve::setSamples(QList<double> const&, QList<double> const&)
libqwt.so.6.3.0:000000000010e850 T QwtPlotCurve::setSamples(QList<double> const&)
libqwt.so.6.3.0:000000000010e990 T QwtPlotCurve::setSamples(float const*, float const*, int)
libqwt.so.6.3.0:000000000010e718 T QwtPlotCurve::setSamples(double const*, int)
libqwt.so.6.3.0:000000000010e8f0 T QwtPlotCurve::setSamples(QList<float> const&)
libqwt.so.6.3.0:000000000010e650 T QwtPlotCurve::setSamples(QList<float> const&, QList<float> const&)
libqwt.so.6.3.0:000000000010ecd8 T QwtPlotCurve::setSamples(float const*, int)
libqwt.so.6.3.0:000000000010e230 T QwtPlotCurve::setSamples(double const*, double const*, int)

Could anyone suggest a way forward, the Qt is version 6.5.2 Qwt is latest from git.

Thanks