[Qt] QFuture和QFutureWatcher
来源:互联网 发布:问题跟踪软件 编辑:程序博客网 时间:2024/06/06 07:37
==================================
#include <QtCore>
// helloconcurrent/main.cpp
void hello()
{
qDebug() << "Hello from thread " << QThread::currentThread();
}
int main(int argc, char *argv[])
{
QCoreApplication app(argc, argv);
///重点分析下QFuture 和QtConcurrent这两个 关键字的用法!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
QFuture<void> future = QtConcurrent::run(hello);//thread-self自己函数就是一个线程. 暂时不懂QFuture和QtConcurrent的具体用法。
qDebug() << "hello from GUI thread " << QThread::currentThread();
future.waitForFinished();
return 0;
}
- [Qt] QFuture和QFutureWatcher
- QFuture QFutureWatcher
- QFutureWatcher QFuture
- Qt之QFutureWatcher
- Qt之QFuture
- QFuture 类 Qt 控制线程
- QFutureWatcher
- QFutureWatcher 可以使用信号
- QFutureSynchronizer 实现QFuture的同步
- 使用QFuture类监控异步计算的结果
- 编译QT 和 嵌入式QT
- QT 和 QT/Embeded 介绍
- QT/E和QT/X11
- gtk和qt
- 【存档】QT和OpenCV
- qt 和wxWidgets
- Qt 和 PyQt
- Eclipse 和 Qt 集成
- c2-3-main-frm_11701-11900渲染日志
- QObject 之 Thread Affinity
- 数据库之视图
- 下载安装tomcat6.0
- QMetaObject之invokeMethod 点滴记录(有时间在看看)
- [Qt] QFuture和QFutureWatcher
- 敏捷开发一千零一问系列之十七:长期受制于强势客户怎么办?(上)
- eclipse下SVN subclipse插件
- 解决win7 64位系统oracle连接问题
- android linux 基础知识总结(1)
- 杭电hdu 1074 Doing Homework dp
- android linux 基础知识总结(2)
- JDBC使用预编译SQL的好处
- android linux 基础知识总结(3)