问题:
Cannot find file: F:\Program\QT5\Program\C++GUI Qt4编程源代码\chap02\gotocell2\gotocell2.pro.
08:55:48: 进程"D:\Qt\Qt5.5.0\5.5\mingw492_32\bin\qmake.exe"退出,退出代码 2 。
Error while building/deploying project gotocell2 (kit: Desktop Qt 5.5.0 MinGW 32bit)
When executing step "qmake"
1、工程目录不能有中文字符,空格,特殊字符。所以需要把工程目录修改为合适的名字。
QT4上编译的程序转QT5上编译需要处理的细节:
1、将#include<QtGui>修改为#include<QtWidgets>
2、在xx.pro文件中,添加 QT += widgets.