Add a button to Topbar to call out WarningMessage above mainwindow , make the WarningMEssagewidget be popup widget.

This commit is contained in:
chenhuijun
2024-04-19 14:10:47 +08:00
parent 7dc0404481
commit e4eb325c40
4 changed files with 25 additions and 6 deletions

View File

@@ -27,8 +27,8 @@ WarningMessageWidget::WarningMessageWidget(QWidget *parent):QWidget(parent)
, mErrorEmptyMessage(new QLabel(tr("System is working properly.")))
, mWarningEmptyMessage(new QLabel(tr("No message.")))
{
// setWindowFlags(windowFlags()|Qt::FramelessWindowHint|Qt::Popup);
setWindowFlags(windowFlags()|Qt::FramelessWindowHint);
setWindowFlags(windowFlags()|Qt::FramelessWindowHint|Qt::Popup);
// setWindowFlags(windowFlags()|Qt::FramelessWindowHint);
setWindowOpacity(1);
setAttribute(Qt::WA_TranslucentBackground);
setObjectName("WarningPanel");