--- a/AuthDialog.cpp +++ b/AuthDialog.cpp @@ -65,6 +65,10 @@ AuthDialog::AuthDialog(const QString &ac } setupUi(this); + QWidget *wnd = window(); + if( wnd ) { + wnd->setWindowFlags(wnd->windowFlags() | Qt::WindowStaysOnTopHint); + } connect(buttonBox, &QDialogButtonBox::accepted, this, &AuthDialog::okClicked); connect(buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);