使用QT Creator 4.4.1 based on QT 5.9.2 编写: helllo world!
// #include “mainwindow.h”
#include
#include
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
// 使用标签,显示, hello world!
QLabel label(“hello world!”) ;
label.show();
return a.exec();
}
ctrl +R 运行结果: