Qt Cannot open include file: 'QtConcurrent': No such file or directory


假期手痒用Qt写了个便笺程序,其中文件操作用到了QtConcurrent模块。
噼里啪啦,一通猛如虎的操作下来,代码写完了,愉快地build+run一套,结果报错了:(

Cannot open include file: 'QtConcurrent': No such file or directory

编译不过一声吼,操起鼠标查google。
官方文档就是这么写的

看来我是漏了QT += concurrent,然而我记得以前QtConcurrent是在core模块中的。
或许是Qt5把它移走了吧~
我用的是宇宙第一IDE,添加模块的方法:



上一篇:Python 线性回归(y=ax+b)

下一篇:C++ 点的线性拟合 y(x)=ax+b


Qt
Copyright © 2002-2019 k262电脑网 www.k262.cn 皖ICP备2020016292号
温馨提示:部分文章图片数据来源与网络,仅供参考!版权归原作者所有,如有侵权请联系删除!QQ:251442993 热门搜索 网站地图