Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
ejanimationwidget.h 534 Bytes
Copy Edit Web IDE Raw Blame History
unix_chen authored 2018-03-26 07:59 . init
#ifndef EJANIMATIONWIDGET_H
#define EJANIMATIONWIDGET_H
#include <QWidget>
#include <QTimer>
#include <memory>
#include "ejanimation.h"
class EJAnimationWidget : public QWidget
{
Q_OBJECT
public:
explicit EJAnimationWidget(QWidget *parent = 0);
void setAni(EJAnimation *ani);
void paintEvent(QPaintEvent *event = 0);
signals:
public slots:
void OnTimeOut();
private:
EJAnimation *m_ani = nullptr;
QTimer *m_timer = nullptr;
int m_index = 0;
};
#endif // EJANIMATIONWIDGET_H

Comment ( 0 )

Sign in for post a comment