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()