#ifndef _CHART_CURVE_H_ #define _CHART_CURVE_H_ #include #include "ChartBaseSeries.h" #include //显示图表 #include #include #include #include QT_CHARTS_USE_NAMESPACE//QtChart名空间 enum CuParListModel { CUCHARTCURVE1, CUCHARTCURVE2, CUCHARTCURVE3 }; struct CurvePar { QColor Color; QString name; QList list; }; class ChartCurve : public ChartBaseSeries { Q_OBJECT public: ChartCurve(QWidget* parent = nullptr); ~ChartCurve(); QList GetCuPar(CuParListModel); void Init(QList); void SetPointShow(bool); private: QSplineSeries* InitLine(QColor,QString,QList list); bool isPointLabelShow = false; }; #endif //_CHART_CURVE_H_