class YourData: public QwtSeriesData<QPointF>
{
public:
....
virtual size_t size() const override
{
return m_pairs.size();
}
virtual QPointF sample
( size_t i
) const override
{
auto& pair = m_pairs[i];
return QPointF( pair.
first, pair.
second );
}
private:
QVector< QPair<unsigned long, qreal> >;
};
class YourData: public QwtSeriesData<QPointF>
{
public:
....
virtual size_t size() const override
{
return m_pairs.size();
}
virtual QPointF sample( size_t i ) const override
{
auto& pair = m_pairs[i];
return QPointF( pair.first, pair.second );
}
private:
QVector< QPair<unsigned long, qreal> >;
};
To copy to clipboard, switch view to plain text mode
Uwe
Bookmarks