• 大小: 9.29MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-19
  • 语言: 其他
  • 标签: Qt5  Thread  C++  VS  

资源简介

在VS2015+Qt5.9的环境下,采用继承QThread的方式,写了一个多线程小程序,需要修改工作函数,在私有函数里面修改run就可以了。适合初学者。

资源截图

代码片段和文件信息

#include 

#include “widget.h“
#include 

int main(int argc char *argv[])
{
QApplication a(argc argv);
Widget w;
w.resize(960 640);
w.show();

return a.exec();
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.     30720  2019-04-17 17:08  Qt_More_Thread1\.vs\Qt_More_Thread1\v14\.suo

     文件       3797  2019-04-17 17:00  Qt_More_Thread1\Qt_More_Thread1\GeneratedFiles\Debug\moc_widget.cpp

     文件       3797  2019-04-17 17:08  Qt_More_Thread1\Qt_More_Thread1\GeneratedFiles\Release\moc_widget.cpp

     文件        223  2019-04-17 17:00  Qt_More_Thread1\Qt_More_Thread1\main.cpp

     文件        344  2019-04-17 16:55  Qt_More_Thread1\Qt_More_Thread1\mythread.cpp

     文件        298  2019-04-17 16:55  Qt_More_Thread1\Qt_More_Thread1\mythread.h

     文件       9089  2019-04-17 17:00  Qt_More_Thread1\Qt_More_Thread1\Qt_More_Thread1.vcxproj

     文件       2534  2019-04-17 17:00  Qt_More_Thread1\Qt_More_Thread1\Qt_More_Thread1.vcxproj.filters

     文件        633  2019-04-17 17:08  Qt_More_Thread1\Qt_More_Thread1\Qt_More_Thread1.vcxproj.user

     文件       1125  2019-04-17 17:07  Qt_More_Thread1\Qt_More_Thread1\widget.cpp

     文件        493  2019-04-17 16:55  Qt_More_Thread1\Qt_More_Thread1\widget.h

     文件      78035  2019-04-17 17:01  Qt_More_Thread1\Qt_More_Thread1\x64\Debug\main.obj

     文件      71000  2019-04-17 17:01  Qt_More_Thread1\Qt_More_Thread1\x64\Debug\moc_widget.obj

     文件      73645  2019-04-17 17:01  Qt_More_Thread1\Qt_More_Thread1\x64\Debug\mythread.obj

     文件        270  2019-04-17 17:08  Qt_More_Thread1\Qt_More_Thread1\x64\Debug\Qt_More_Thread1.log

     文件       4750  2019-04-17 17:08  Qt_More_Thread1\Qt_More_Thread1\x64\Debug\Qt_More_Thread1.tlog\CL.command.1.tlog

     文件     119552  2019-04-17 17:08  Qt_More_Thread1\Qt_More_Thread1\x64\Debug\Qt_More_Thread1.tlog\CL.read.1.tlog

     文件       3312  2019-04-17 17:08  Qt_More_Thread1\Qt_More_Thread1\x64\Debug\Qt_More_Thread1.tlog\CL.write.1.tlog

     文件       1060  2019-04-17 17:00  Qt_More_Thread1\Qt_More_Thread1\x64\Debug\Qt_More_Thread1.tlog\custombuild.command.1.tlog

     文件        268  2019-04-17 17:00  Qt_More_Thread1\Qt_More_Thread1\x64\Debug\Qt_More_Thread1.tlog\custombuild.read.1.tlog

     文件        406  2019-04-17 17:00  Qt_More_Thread1\Qt_More_Thread1\x64\Debug\Qt_More_Thread1.tlog\custombuild.write.1.tlog

     文件       2330  2019-04-17 17:08  Qt_More_Thread1\Qt_More_Thread1\x64\Debug\Qt_More_Thread1.tlog\link.command.1.tlog

     文件       4484  2019-04-17 17:08  Qt_More_Thread1\Qt_More_Thread1\x64\Debug\Qt_More_Thread1.tlog\link.read.1.tlog

     文件       1350  2019-04-17 17:08  Qt_More_Thread1\Qt_More_Thread1\x64\Debug\Qt_More_Thread1.tlog\link.write.1.tlog

     文件        234  2019-04-17 17:08  Qt_More_Thread1\Qt_More_Thread1\x64\Debug\Qt_More_Thread1.tlog\Qt_More_Thread1.lastbuildstate

     文件    1298432  2019-04-17 17:08  Qt_More_Thread1\Qt_More_Thread1\x64\Debug\vc140.pdb

     文件     129890  2019-04-17 17:08  Qt_More_Thread1\Qt_More_Thread1\x64\Debug\widget.obj

     文件       2326  2019-04-17 17:08  Qt_More_Thread1\Qt_More_Thread1\x64\Release\main.obj

     文件       3565  2019-04-17 17:08  Qt_More_Thread1\Qt_More_Thread1\x64\Release\moc_widget.obj

     文件       7341  2019-04-17 17:08  Qt_More_Thread1\Qt_More_Thread1\x64\Release\mythread.obj

............此处省略38个文件信息

评论

共有 条评论