From 91eefed48afcd150fed8a542800d09db0b09ecd6 Mon Sep 17 00:00:00 2001 From: Xiao YiFang Date: Wed, 15 Mar 2023 22:58:11 +0800 Subject: [PATCH] fix:status bar when at the startup does not position correctly --- mainstatusbar.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mainstatusbar.cc b/mainstatusbar.cc index 7b04ffc0..1c539e14 100644 --- a/mainstatusbar.cc +++ b/mainstatusbar.cc @@ -86,6 +86,7 @@ void MainStatusBar::showMessage(const QString & str, int timeout, const QPixmap } raise(); show(); + move( QPoint( 0, parentWidget()->height() - height() ) ); } void MainStatusBar::mousePressEvent ( QMouseEvent * ) @@ -101,7 +102,7 @@ bool MainStatusBar::eventFilter( QObject *, QEvent * e ) break; default: break; - }; + } return false; }