2
0
forked from Ivasoft/DSView

fix: The shadow not displayed at a right position in windows 10

This commit is contained in:
dreamsourcelabTAI
2024-04-28 10:23:43 +08:00
parent e93e644f57
commit 1ca4baa111

View File

@@ -778,6 +778,11 @@ void MainFrame::AttachNativeWindow()
nativeWindow->SetBorderColor(QColor(0x80, 0x80, 0x80));
_parentNativeWidget = nativeWindow;
//Make sure the shadow displayed at a right position fisrt time for windows 10.
QTimer::singleShot(100, this, [this](){
_parentNativeWidget->ResizeChild();
});
#endif
}