animatedimagebox.h
462 Bytes
#ifndef ANIMATEDIMAGEBOX_H
#define ANIMATEDIMAGEBOX_H
#include <QLabel>
#include <QtCore>
class AnimatedImageBox : public QLabel
{
Q_OBJECT
public:
explicit AnimatedImageBox(QWidget *parent = 0);
~AnimatedImageBox();
void load(QString fileName);
void clear();
void start(int msec);
void stop();
private:
QList<QPixmap> images;
QTimer *timer;
int index;
private slots:
void step();
};
#endif // ANIMATEDIMAGEBOX_H