📄 movietimer.h
字号:
#ifndef MOVIETIMER_H#define MOVIETIMER_H#include <QTimer>#include <QQueue>#include <QVector>#include <QPixmap>#include "movie.h"/** An example class which makes use of QThread and QPixMap. In order to display this movie, you must connect the show(QPixMap*) signal to an appropriate slot that shows it.*///startclass MovieTimer :public QTimer { Q_OBJECT public: MovieTimer(); ~MovieTimer(); void loadPics(); public slots: void nextFrame(); void addFile(const QString& filename); void setInterval(int newDelay); signals: void show(const QPixmap *image); private: QVector<QPixmap> pics; int current;};//end#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -