From 564f33e8b29a6f73050f4da3f843b942aaf0d739 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周三, 08 5月 2024 19:36:16 +0800 Subject: [PATCH] Improve event filter handling --- src/quick/quickwindowagent_win.cpp | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/quick/quickwindowagent_win.cpp b/src/quick/quickwindowagent_win.cpp index 0ef0d60..a47f4c0 100644 --- a/src/quick/quickwindowagent_win.cpp +++ b/src/quick/quickwindowagent_win.cpp @@ -76,7 +76,12 @@ # if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) if (auto api = window()->rendererInterface()->graphicsApi(); - !(api == QSGRendererInterface::Direct3D11 || api == QSGRendererInterface::Direct3D12)) { + !(api == QSGRendererInterface::Direct3D11 + +# if QT_VERSION >= QT_VERSION_CHECK(6, 6, 0) + || api == QSGRendererInterface::Direct3D12 +# endif + )) { # endif QRect rect(QPoint(0, 0), size().toSize()); QRegion region(rect); -- Gitblit v1.9.1