RealTimeMonitorDemo Example
#include <QTimer> #include "DemoChartWindow.h" class MainWindow : public DemoChartWindow { Q_OBJECT public: MainWindow(); protected: void createSeriesParametrs(); void createChart(); protected slots: void start(); void stop(); void updateFrequency(int); void animation(); protected: QVector<qreal> m_values; int m_frequency; QTimer m_timer; QPushButton* m_startButton; QPushButton* m_stopButton; private: Q_DISABLE_COPY(MainWindow) };