From 9dcea027f16c4ce5852da3dfc8aca284c582bd7d Mon Sep 17 00:00:00 2001
From: sola.lu <sola.lu.greentest.com.cn>
Date: 周五, 06 6月 2025 18:19:18 +0800
Subject: [PATCH] 1.注释掉custom margin,解决程序放大后,遮盖窗口底部内容的问题。

---
 src/core/qwkglobal.cpp |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/core/qwkglobal.cpp b/src/core/qwkglobal.cpp
index aa34606..67b9c67 100644
--- a/src/core/qwkglobal.cpp
+++ b/src/core/qwkglobal.cpp
@@ -27,10 +27,14 @@
 
                 if (!obj)
                     continue;
+#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
                 if (QObjectPrivate::get(obj)->threadData.loadRelaxed() !=
                     d->threadData.loadRelaxed()) {
-                    qWarning(
-                        "QCoreApplication: Object event filter cannot be in a different thread.");
+#else
+                if (QObjectPrivate::get(obj)->threadData != d->threadData) {
+#endif
+                    qWarning("QCoreApplication: Object event filter cannot be in a different "
+                             "thread.");
                     continue;
                 }
                 if (obj->eventFilter(receiver, event))

--
Gitblit v1.9.1