#ifndef CIRCULARGAUGE_H #define CIRCULARGAUGE_H #include #include class CircularGauge : public QWidget { Q_OBJECT public: explicit CircularGauge(QWidget *parent = 0); signals: public slots: void setValue(int value); void setMaximum(int maximum); void setMinimum(int minimum); protected: QImage background; QImage bar; QImage indicator; QImage icon; QImage line; void paintEvent(QPaintEvent *event); private: int value; int maximum; int minimum; }; #endif // CIRCULARGAUGE_H