回复: 如何在QTcreator5.1.1中添加其他版本的QT?如何才能用这个开发QT4.8.5
#6 [刘备 11-22 17:12]
#include
#include
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel *label = new QLabel("Hello Qt!");
label->show();
return app.exec();
}
代码如上
PRO文件如下
TEMPLATE= app
SOURCES = hello.cpp
#7 回 6楼(刘备) 的帖子 [tompsontan 11-22 17:22]
你现在用的Qt 5自带的编译器么?不要用mingw4.8
#8 [刘备 11-22 17:27]
是啊
那该用哪个?
求下载链接
#9 回 8楼(刘备) 的帖子 [tompsontan 11-22 17:35]
你可以下一个旧版的QtCreator,自带mingw的,例如QtCreator2.4
#10 回 8楼(刘备) 的帖子 [tompsontan 11-22 17:39]
qtcreator2.4
http://download.qt-project.org/archive/qtcreator/2.4/