How to use Qt5 to realize multithreading (I)
•
Java
#include "thread_one.h" thread_one::thread_one(QObject *parent) : QThread(parent) { } void thread_one::run() { sleep(5);//模拟一个时长5s的复杂函数 emit over();//复杂函数结束后发出信号 }
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码