Add a button to Topbar to call out WarningMessage above mainwindow , make the WarningMEssagewidget be popup widget.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user