Fix bug wired config window can not show top when clicking information of this wired net

This commit is contained in:
chenlelin 2020-08-10 15:54:16 +08:00
parent 3ab21695b2
commit 549cbe5a70
2 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,7 @@ ConfForm::ConfForm(QWidget *parent) :
{
ui->setupUi(this);
this->setWindowFlags(Qt::FramelessWindowHint);
this->setWindowFlags(Qt::FramelessWindowHint); //Qt::WindowStaysOnTopHint
this->setWindowTitle(tr("edit network"));//"网络设置"
this->setAttribute(Qt::WA_TranslucentBackground);
//需要添加 void paintEvent(QPaintEvent *event) 函数

View File

@ -375,6 +375,7 @@ void OneLancForm::on_btnInfo_clicked()
cf->move(primaryGeometry.width() / 2 - cf->width() / 2, primaryGeometry.height() / 2 - cf->height() / 2);
cf->show();
cf->raise();
cf->activateWindow();
}
void OneLancForm::waitAnimStep()