python qthread
时间: 2023-09-07 13:17:04 浏览: 152
python GUI库图形界面开发之PyQt5线程类QThread详细使用方法
Python中的QThread是PyQt库中的一个类,它是对Thread类的封装,两者功能相似。QThread是Qt的线程类中最核心的底层类,由于PyQt的跨平台特性,QThread要隐藏所有与平台相关的代码。要使用QThread开始一个线程,可以创建它的一个子类,然后覆盖其run()函数。在run()函数中,可以编写需要在线程中执行的代码。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Python中QThread、Thread、Processing的比较总结](https://blog.csdn.net/qq_42138454/article/details/118876779)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [PyQT——多线程(QThread)](https://blog.csdn.net/qq_35809147/article/details/116167446)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文