##// END OF EJS Templates
Integrated scatter type series...
Integrated scatter type series Also added an implementation for creating series graphic items with a simple class derived from QChartSeries.

File last commit:

r42:5fcd249308db
r42:5fcd249308db
Show More
qchartwidget.h
38 lines | 887 B | text/x-c | CLexer
#ifndef QCHARTWIDGET_H
#define QCHARTWIDGET_H
#include "qchartglobal.h"
#include "qchart.h"
#include <QWidget>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QChartSeries;
class QChartWidgetPrivate;
class QTCOMMERCIALCHART_EXPORT QChartWidget : public QWidget
{
Q_OBJECT
public:
explicit QChartWidget(QWidget *parent = 0);
~QChartWidget();
//implement from QWidget
void resizeEvent(QResizeEvent *event);
QSize sizeHint() const;
// TODO: addSeries and createSeries are optional solutions
void addSeries(QChartSeries* series);
QChartSeries* createSeries(QList<qreal> x, QList<qreal> y, QChartSeries::QChartSeriesType type);
protected:
QChartWidgetPrivate * const d_ptr;
private:
Q_DISABLE_COPY(QChartWidget)
Q_DECLARE_PRIVATE(QChartWidget)
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // QCHARTWIDGET_H