3 Star 0 Fork 1

hezitation/safety_center

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
devicestate.cpp 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
hezitation 提交于 2024-01-04 17:37 . merg
#include "devicestate.h"
#include "ui_devicestate.h"
#include "share.h"
DeviceState::DeviceState(QWidget *parent)
: QWidget(parent)
, ui(new Ui::DeviceState)
{
ui->setupUi(this);
// def pages
DeviceStateMain* main_page=new DeviceStateMain();
CompleteInspection* inspection_page=new CompleteInspection();
ProcessManage* process_manage=new ProcessManage();
// set extern args in main page
main_page->stack_widget=ui->stackedWidget;
main_page->process_widget=process_manage;
main_page->inspection_widget=inspection_page;
main_page->selected_inspection_args_p=this->selected_inspection_args;
// set extern args in inspection page
inspection_page->set_args(ui->stackedWidget,main_page);
inspection_page->selected_inspection_args_p=this->selected_inspection_args;
// set extern args in process page
process_manage->set_args(ui->stackedWidget,main_page);
// insert pages to stack widget
ui->stackedWidget->addWidget(main_page);
ui->stackedWidget->addWidget(inspection_page);
ui->stackedWidget->addWidget(process_manage);
ui->stackedWidget->setCurrentWidget(main_page);
}
DeviceState::~DeviceState()
{
delete ui;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/hezitation/safety_center.git
git@gitee.com:hezitation/safety_center.git
hezitation
safety_center
safety_center
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385