From 549cbe5a704bf9760adad1c8b9954446093c3c9a Mon Sep 17 00:00:00 2001 From: chenlelin Date: Mon, 10 Aug 2020 15:54:16 +0800 Subject: [PATCH] Fix bug wired config window can not show top when clicking information of this wired net --- src/confform.cpp | 2 +- src/onelancform.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/confform.cpp b/src/confform.cpp index 92665c5f..10e43d50 100644 --- a/src/confform.cpp +++ b/src/confform.cpp @@ -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) 函数 diff --git a/src/onelancform.cpp b/src/onelancform.cpp index 3733716e..9876ecea 100644 --- a/src/onelancform.cpp +++ b/src/onelancform.cpp @@ -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()