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