⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 movietimer.h

📁 压缩包里有教材<<C++模式设计-基于QT4开源跨平台开发框架>>所有源码
💻 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 + -