1 Star 12 Fork 6

hg-csbh/Qt-Project

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mainwindow.cpp 477 Bytes
一键复制 编辑 原始数据 按行查看 历史
ax020913 提交于 2023-12-31 10:10 +08:00 . QT 模态对话框消息传递
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <childdialog.h>
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on_pushButton_clicked() // pushButton 按钮的点击事件
{
close();
childDialog childDialog;
if(childDialog.exec() == QDialog::Accepted){
this->show();
}else{
return;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hg-csbh/qt-project.git
git@gitee.com:hg-csbh/qt-project.git
hg-csbh
qt-project
Qt-Project
master

搜索帮助