#ifndef CHART_H #define CHART_H #include #include #include QCHART_BEGIN_NAMESPACE class QCHART_EXPORT QChart : public QGraphicsItem { protected: QChart(QGraphicsItem* parent =0); public: virtual ~QChart(); static QChart* createXYLineChart(const QList& dataset); virtual void setSize(const QSizeF& rect)=0; void setMargin(int margin); int margin() const { return m_marginSize;} private: int m_marginSize; }; QCHART_END_NAMESPACE #endif