forked from Ivasoft/DSView
fix: The shadow not displayed at a right position in windows 10
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user