QT安装和hello world

qt下载地址:
/

QT代码:

#include "mainwindow.h"
#include <QApplication>int main(int argc, char *argv[])
{QApplication a(argc, argv);//创建窗口对象mywidget w;//设置窗口名称w.setWindowTitle("test");//设置窗口大小w.resize(500,500);//显示窗口w.show();//保持窗口return a.exec();
}

QT安装和hello world

qt下载地址:
/

QT代码:

#include "mainwindow.h"
#include <QApplication>int main(int argc, char *argv[])
{QApplication a(argc, argv);//创建窗口对象mywidget w;//设置窗口名称w.setWindowTitle("test");//设置窗口大小w.resize(500,500);//显示窗口w.show();//保持窗口return a.exec();
}