Fix bug wired config window can not show top when clicking information of this wired net
This commit is contained in:
parent
3ab21695b2
commit
549cbe5a70
|
@ -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) 函数
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue