1.hello.cpp:
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPushButton hello("Hello world!");
hello.resize(100, 30);
hello.show();
return app.exec();
}
2.hello.pro:
TEMPLATE = app
DESTDIR = E:\hello
SOURCES += hello.cpp
CONFIG += qt warn_on release
3.qmake -o Makefile hello.pro
当我执行完qmake -p Makefile hello.pro后产生了相关的文件和目录就是没有exe文件.
请问这是为什么??
谢谢.
[ 此贴被XChinux在2006-01-23 12:43重新编辑 ]