##// END OF EJS Templates
Adds chartPresenter example to docs
Adds chartPresenter example to docs

File last commit:

r482:e8dd9abb1675
r482:e8dd9abb1675
Show More
chartview.h
28 lines | 425 B | text/x-c | CLexer
#ifndef CHARTVIEW_H_
#define CHARTVIEW_H_
#include <qchartview.h>
#include <QTimer>
QTCOMMERCIALCHART_USE_NAMESPACE
//![1]
class ChartView: public QChartView
{
Q_OBJECT
public:
ChartView(QWidget* parent=0);
virtual ~ChartView();
public slots:
void handleTimeout();
private:
QTimer m_timer;
QList<QSeries*> m_series;
QStringList m_titles;
int m_index;
};
//![1]
#endif /* CHARTVIEW_H_ */