16,211
社区成员
发帖
与我相关
我的任务
分享
void MainWindow::self_init()
{
ui->MainWindow::stat_label->setStyleSheet("background-color: yellow");
ui->MainWindow::conn_btn->setEnabled(false);
ui->MainWindow::stat_label->setText(tr("正在初始化模块"));
QString address = data_trans.host_address();
ui->MainWindow::self_ip_line->setText(address);
if(data_trans)
{
this->error_stat();
}
}
void MainWindow::error_stat()
{
QMessageBox::warning(0,tr("警告"),tr("初始化失败,请联系开发者"),QMessageBox::Close);
ui->MainWindow::stat_label->setStyleSheet("background-color: red");
ui->MainWindow::stat_label->setText(tr("致命错误:初始化模块失败"));
}