第一次使用QT(Qt SDK by Nokia v2010.04 (open source))
用空的QT项目编写以下的程序
#include <QApplication.h>
#include <QLabel.h>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel *label = new QLabel("Hello QT");
label ->show();
return app.exec();
}
调试时出现如下错误,说找不到“test.pro”,因为我刚接触QT,所以请教下是哪里出了问题,谢谢!
Running build steps for project test...
Starting: "c:/qt/2010.04/qt/bin/qmake.exe" C:/Documents and Settings/harveychan/桌面/test/test.pro -r -spec win32-g++
Cannot find file: c:\Documents and Settings\harveychan\桌面\test\test.pro.
The process "c:/qt/2010.04/qt/bin/qmake.exe" exited with code %2.
Error while building project test (target: Desktop)
When executing build step 'qmake'
------解决方案--------------------
编译时不能有中文路径…… 明白了了?楼主…… 把项目和构建路径换一换