LineChart2D Example
#include <QtitanChart.h>
#include "DemoChartWindow.h"
class MainWindow : public DemoChartWindow
{
Q_OBJECT
protected:
enum SeriesType
{
LineSeries,
SplineSeries,
StepLineSeries,
};
public:
MainWindow();
protected:
void createSeriesParametrs();
void createLineSeries();
void createSplineSeries();
void createStepLineSeries();
protected:
virtual void updateValueParameters();
void displayShadowSeries();
void lineThicknessSeries();
protected slots:
void seriesChanged(int);
void lineThicknessChanged(int);
void displayShadowChanged(bool);
protected:
QComboBox* m_seriesSwitcher;
QComboBox* m_lineThicknessSwitcher;
QCheckBox* m_displayShadowBox;
bool m_displayShadow;
int m_lineThicknessIndex;
protected:
QString m_arYears[5];
private:
Q_DISABLE_COPY(MainWindow)
};