ZoomAndScrollDemo Example
#include <QtitanChart.h>
#include "DemoChartWindow.h"
class QComboBox;
class MainWindow : public DemoChartWindow
{
Q_OBJECT
protected:
enum SeriesType
{
Line,
Area,
Column,
};
public:
MainWindow();
protected:
void createSeriesParametrs();
ChartSeries2D* createLineSeries();
ChartSeries2D* createAreaSeries();
ChartSeries2D* createColumnSeries();
protected:
virtual void updateValueParameters();
protected slots:
void seriesChanged(int index);
void pointsCountChanged(int index);
protected:
QComboBox* m_seriesSwitcher;
QComboBox* m_dataPointsCountSwitcher;
private:
Q_DISABLE_COPY(MainWindow)
};