QT QThread
时间: 2023-08-29 10:06:51 浏览: 155
QT线程示例_QT_Qthread
QT中的QThread是一个用于多线程编程的类。在Qt 4.4版本之后,Qt官方对QThread类进行了改革,目的是让多线程编程更加符合C语言的面向对象特性。继承QThread并将耗时操作代码放在run()函数中的做法被认为是不太合适的。在我们的程序内部,我们可以使用currentThread()函数来获取QThread指针,从而对线程进行一些操作。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Qt 多线程编程的 QThread 类 (详细)](https://blog.csdn.net/Superman___007/article/details/107396914)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *3* [Qt 线程中QThread的使用](https://blog.csdn.net/qq_43331089/article/details/123659006)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文