摘要: 最终效果图: 代码: mainwindow.h #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include<QProgressBar> #include<QLabel> #include<QFontComboBo 阅读全文
posted @ 2022-05-06 16:47 江南王小帅 阅读(357) 评论(0) 推荐(0)
摘要: 最终效果图:【文章最后会放上代码】 一:不要勾选Generate Form 二:头文件中声明 控件 声明初始化UI界面的函数 三:构建控件 四:声明槽函数,定义槽函数 代码: dialog.h文件 #ifndef DIALOG_H #define DIALOG_H #include <QDialog 阅读全文
posted @ 2022-05-06 11:25 江南王小帅 阅读(1361) 评论(0) 推荐(0)
摘要: #include "dialog.h" #include "ui_dialog.h" Dialog::Dialog(QWidget *parent) : QDialog(parent) , ui(new Ui::Dialog) { ui->setupUi(this); QObject::connec 阅读全文
posted @ 2022-05-06 09:51 江南王小帅 阅读(128) 评论(0) 推荐(0)