Hi Everyone,
I am working on qwtplot, and its getting crash, as I'm trying to overload with data.
I have read on this link http://www.qtforum.de/viewtopic.php?t=16041
And come to the conclusion that I should use setRawSamples() rather than using setSamples().
So previously I'm doing this,
QVector<QPointF> m_points;
//Adding some data to m_points
m_points.
push_back(QPointF(xValue, yValue
));
setSamples(m_points);
QVector<QPointF> m_points;
//Adding some data to m_points
m_points.push_back(QPointF(xValue, yValue));
setSamples(m_points);
To copy to clipboard, switch view to plain text mode
And now I'm trying with this below, but getting some error
QVector<QPointF> m_points;
//Adding some data to m_points
m_points.
push_back(QPointF(xValue, yValue
));
setRawSamples(m_points.at(0).x(), m_points.at(0).y(), sizeof(m_points));
QVector<QPointF> m_points;
//Adding some data to m_points
m_points.push_back(QPointF(xValue, yValue));
setRawSamples(m_points.at(0).x(), m_points.at(0).y(), sizeof(m_points));
To copy to clipboard, switch view to plain text mode
Error:
error: C2664: 'void QwtPlotCurve::setRawSamples(const double *,const double *,int)': cannot convert argument 1 from 'qreal' to 'const double *'
In the above code I tried with casting but doesn't working.
First of all I want to try this and want to check does is this the problem that crashing my application.
If someone think, may be their is other problem then please mentioned that also.
Thanks.
Bookmarks