#include <QPushButton>

类QPushButton

命令按钮

 1 #include "mainwindow.h"
 2 #include <QApplication>
 3 
 4 int main(int argc, char *argv[])
 5 {
 6     QApplication a(argc, argv);
 7     MainWindow w;
 8     w.show();
 9 
10     QPushButton *p1=new QPushButton("ABC");
11     p1->show();
12 
13     return a.exec();
14 }
原文地址:https://www.cnblogs.com/denggelin/p/5668459.html