回复: 来大神~~~哪里有Qt Gui Application。急求弄一天安装器了,到底怎么用啊...
#6 [jdwx 05-01 21:31]
Qt5的hello,共两个文件:
=============================
hello.pro
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TEMPLATE = app
TARGET = hello
DEPENDPATH += .
INCLUDEPATH += .
# Input
SOURCES += hello.cpp
============================
hello.cpp
#include
#include
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QLabel label;
label.setText("Hello Qt!");
label.show();
return a.exec();
}
#7 [choudoufu007 05-01 21:48]
谢谢版主了!现在用5.0.2可以运行hello world了!开始学习中