修复最小化按钮按之后再show部分不显示。

qt6
zcy 2023-03-13 23:22:11 +08:00
parent 450bcd6f4f
commit 3c163b6333
1 changed files with 5 additions and 1 deletions

View File

@ -764,6 +764,10 @@ bool QssMainWindow::eventFilter(QObject * obj, QEvent * ev){
if (ev->type() == QEvent::Hide){
qDebug()<<"hide";
}
if(ev->type() == QEvent::MacSizeChange){
qDebug()<<"MacSizeChange";
}
if (obj == m_frame)
{
if (ev->type() == QEvent::Paint){
@ -822,7 +826,7 @@ bool QssMainWindow::eventFilter(QObject * obj, QEvent * ev){
else if (ev->type() == QEvent::Hide)
{
if(m_tray_on){
this->hide();
m_frame->hide();
return true;
}else{
close();