From 6b60869385137ec71e7bb91db76016f45eb711e1 Mon Sep 17 00:00:00 2001
From: Yuhang Zhao <zhaoyuhang@rankyee.com>
Date: 周三, 06 12月 2023 10:09:42 +0800
Subject: [PATCH] port more implementation

---
 src/widgets/widgetwindowagent.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/widgets/widgetwindowagent.cpp b/src/widgets/widgetwindowagent.cpp
index 6dd9015..8f4a76d 100644
--- a/src/widgets/widgetwindowagent.cpp
+++ b/src/widgets/widgetwindowagent.cpp
@@ -32,7 +32,9 @@
             return false;
         }
 
-        std::ignore = w->winId(); // Make sure the window handle is created
+        w->setAttribute(Qt::WA_DontCreateNativeAncestors);
+        w->setAttribute(Qt::WA_NativeWindow);
+
         if (!d->setup(w, new WidgetItemDelegate())) {
             return false;
         }

--
Gitblit v1.9.1