Hi, I ran into a runtime error while calling setSamples function from my app.
Its like this -
m_scatter.curves[0].setSamples(&m_scatter.vx[0],&m_scatter.vy[0][0],NumIndicatorsFound);
m_scatter.curves[0].setSamples(&m_scatter.vx[0],&m_scatter.vy[0][0],NumIndicatorsFound);
To copy to clipboard, switch view to plain text mode
where m_scatter is like this -
PlotInfo m_scatter; //private variable
PlotInfo m_scatter; //private variable
To copy to clipboard, switch view to plain text mode
And PlotInfo is defined as -
struct PlotInfo {
std::vector<double> vx;
std::vector<double> vy[4];
std::vector<int> mIndexToEllipse;
};
struct PlotInfo {
QwtPlot plot;
QwtPlotCurve curves[4];
QwtPlotMarker highlightMarker[4];
std::vector<double> vx;
std::vector<double> vy[4];
std::vector<int> mIndexToEllipse;
};
To copy to clipboard, switch view to plain text mode
The runtime error is pointing to line 1508 in <vector>. BTW my platform is Qt 5.15, Kit is MSVC2019, Qwt lib v6.2.
Any help is appreciated.
Bookmarks