代码拉取完成,页面将自动刷新
#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;
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。