0
点赞
收藏
分享

微信扫一扫

qt5 qmake开发

半秋L 2022-05-19 阅读 153

mkdir hello

helloworld.cpp

#include <QPushButton>
#include <QApplication>

int main(int argc, char *argv[])
{
QApplication app(argc, argv);

QPushButton btn("hello world");
btn.resize(200,100);
btn.show();
return app.exec();
}


qmake –project

生成的是hello.pro

编辑
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
qmake hello.pro

 生成了Makefile

make





举报

相关推荐

0 条评论