以下所有代码均利用软件QT5编写

 

 

项目一:Hello world!

利用QTcreator创建项目

修改main.cpp代码为

 1 #include "mainwindow.h"
 2 #include <QApplication>
 3 #include <QLabel>
 4 
 5 int main(int argc, char *argv[])
 6 {
 7     QApplication a(argc, argv);
 8     QLabel *label = new QLabel("Hello, world!");
 9     label->show();
10 
11     return a.exec();
12 }
View Code

相关文章:

  • 2022-12-23
  • 2021-07-20
  • 2021-04-15
  • 2021-11-02
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-13
  • 2022-01-29
  • 2021-12-27
  • 2022-01-15
  • 2021-06-14
  • 2022-12-23
相关资源
相似解决方案