#ifndef SMOOTHCURVEGRAPH_H #define SMOOTHCURVEGRAPH_H #include "qcustomplot.h" class SmoothCurveGraph : public QCPGraph { Q_OBJECT public: SmoothCurveGraph(QCPAxis *keyAxis, QCPAxis *valueAxis); void setSmooth(bool smooth); protected: bool m_smooth; // QCPGraph interface protected: virtual void drawLinePlot(QCPPainter *painter, const QVector &lines) const override; }; #endif // SMOOTHCURVEGRAPH_H