目录 一、继承QThread 二、继承QRunnable 三、使用moveToThread Qt提供了三种方式创建线程,如下图: 一、继承QThread 继承QThread,这是最常用的方法了,通过重写虚函数void QThread::ru