1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#ifndef IGNITIONICON_H #define IGNITIONICON_H #include <QLabel> #include <QTimer> class IgnitionIcon : public QLabel { Q_OBJECT static QPixmap *icon; QTimer timer; public: explicit IgnitionIcon(QWidget *parent = Q_NULLPTR); private slots: void check(); }; #endif // IGNITIONICON_H