#ifndef ANIMATEDIMAGEBOX_H #define ANIMATEDIMAGEBOX_H #include #include 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 images; QTimer *timer; int index; private slots: void step(); }; #endif // ANIMATEDIMAGEBOX_H