#ifndef CLOCK_H #define CLOCK_H #include #include #include class Clock : public QWidget { Q_OBJECT public: explicit Clock(QWidget *parent = 0); signals: public slots: protected: void paintEvent(QPaintEvent *event); private slots: void checkUpdate(); private: bool ticking; QTime last; QImage background; }; #endif // CLOCK_H