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

📄 moviethreadmain.cpp

📁 压缩包里有教材<<C++模式设计-基于QT4开源跨平台开发框架>>所有源码
💻 CPP
字号:
#include "movieview.h"#include "moviethread.h"#include <QApplication>//start id="main"int main(int argc, char** argv) {    QApplication app(argc, argv);    MovieView view;    MovieThread movie;      app.connect(&movie, SIGNAL(show(const QPixmap*)),             &view, SLOT(showPix(const QPixmap*)));    app.connect(&view, SIGNAL(intervalChanged(int)),             &movie, SLOT(setInterval(int)));    app.connect(&app, SIGNAL(aboutToQuit()), &movie, SLOT(stop()));    movie.start(); /* A new thread starts executing at this    point, but the method returns immediately. The new thread    starts by calling movie.run(). */    view.show();    return app.exec();}//end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -