Compare commits

..

2 Commits

Author SHA1 Message Date
zhuzichu 0b7358af41 fix bug #377 2023-12-20 18:06:46 +08:00
zhuzichu a851696eb0 fix bug #377 2023-12-20 18:01:09 +08:00
1 changed files with 4 additions and 0 deletions

View File

@ -225,6 +225,10 @@ void FluFramelessHelper::componentComplete(){
}
void FluFramelessHelper::_onScreenChanged(){
#ifdef Q_OS_WIN
HWND hwnd = reinterpret_cast<HWND>(_window->winId());
SetWindowPos(hwnd,nullptr,0,0,0,0,SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_NOMOVE | SWP_NOSIZE |SWP_FRAMECHANGED);
#endif
_window->update();
QGuiApplication::processEvents();
}