From 1ca4baa111a97d6a55dc0524eae83bf56c856666 Mon Sep 17 00:00:00 2001 From: dreamsourcelabTAI Date: Sun, 28 Apr 2024 10:23:43 +0800 Subject: [PATCH] fix: The shadow not displayed at a right position in windows 10 --- DSView/pv/mainframe.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DSView/pv/mainframe.cpp b/DSView/pv/mainframe.cpp index d4605d97..9f702324 100644 --- a/DSView/pv/mainframe.cpp +++ b/DSView/pv/mainframe.cpp @@ -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 }