Qt入门(一)——自己动动手写一个简易的用户化界面(Qt命令行模式)

博主用的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;
	QLabe
posted @ 2022-08-05 17:30  周末不下雨  阅读(118)  评论(0编辑  收藏  举报