[本文发布于https://blog.youkuaiyun.com/Stack_/article/details/123139363,未经许可不得转载,转载须注明出处]
一、打开工程文件时提示"No Vaild Settings file could be found"
解决方案:删除同目录下的.pro.user后缀文件
二、编译时报错[Assignment needs exactly one word left hand sides,(command line)assignment needs exactly one word on the left hand ]
解决方案:这个不一定是其它文章所说的缺少greaterThan(QT_MAJOR_VERSION, 4): QT += widgets, 还可能是工程目录名有中文或者有等号空格等字符,使用纯字母目录名即可
三、编译时报错[error: [Makefile.Debug:4699: debug/qrc_res.o] Error 1,cc1plus.exe: out of memory allocating 1073745919 bytes]
解决方案:因为使用了qrc文件功能,需要在工程pro文件中添加CONFIG += resources_big
四、编译时报错[进程"C:\Qt\5.15.2\mingw81_32\bin\qmake.exe"退出,退出代码 1 ]
解决方案:因为工程目录名有中文或者有等号空格等字符,使用纯字母目录名即可