#ifndef CHART_H #define CHART_H #include #include #include "DataPoint.h" class ChartView; class ChartScene; class Chart: public QWidget { public: Chart(); void setLabels(const QString& xLabel, const QString& yLabel) { this->xLabel = xLabel; this->yLabel = yLabel; } QString getXLabel() const { return xLabel; } QString getYLabel() const { return yLabel; } void setDataSet(const QList& dataSet); private: void createChartView(); protected: ChartScene* scene; ChartView* view; QString xLabel; QString yLabel; }; #endif