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,
Code:
QVector<QPointF> m_points; //Adding some data to m_points setSamples(m_points);
And now I'm trying with this below, but getting some error
Code:
QVector<QPointF> m_points; //Adding some data to m_points setRawSamples(m_points.at(0).x(), m_points.at(0).y(), sizeof(m_points));
In the above code I tried with casting but doesn't working.Quote:
Error:
error: C2664: 'void QwtPlotCurve::setRawSamples(const double *,const double *,int)': cannot convert argument 1 from 'qreal' to 'const double *'
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.