#ifndef ELEANACLOCK_H #define ELEANACLOCK_H #include #include #include class EleAnaClock : public QWidget { Q_OBJECT public: explicit EleAnaClock(QString path, const QJsonObject &layer, QWidget *parent = nullptr); void cal(); QTimeZone timeZone; QPixmap img; QColor pinHourColor, pinMinColor, pinSecColor; QPainterPath sPath, mPath, hPath; int timerId = 0; protected: void paintEvent(QPaintEvent *) override; void timerEvent(QTimerEvent *) override; }; #endif // ELEANACLOCK_H