博主用的Qt是windows-x86-5.9.0版本
需要加入环境变量path
一、编写代码文件
C:\Users\DELL\Desktop\1-core
在这个目录下新建1-core.cpp
#include <QApplication>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QWidget>
int main(int argc,char *argv[])
{
QApplication app(argc,argv);
QLabel *infoLabel = new QLabel;
QLabel *OpenLabel = new QLabel;
QLineEdit *CmdLineEdit = new QLineEdit;
QPushButton *commitButton = new QPushButton;
QPushButton *cancelButton = new QPushButton;
QPushButton *browseButton = new QPushButton;
infoLabel->setText("input cmd:");
OpenLabel->setText("Open");
commitButton->setText("commit");
cancelButton->setText("ca