From c013e1b4a2e855ecae467cd1dc29adc2cbc53173 Mon Sep 17 00:00:00 2001 From: Zhao Yuhang <2546789017@qq.com> Date: 周二, 11 2月 2025 19:09:16 +0800 Subject: [PATCH] never forget about version update! --- src/quick/quickwindowagent.cpp | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/quick/quickwindowagent.cpp b/src/quick/quickwindowagent.cpp index 9270311..aaa321c 100644 --- a/src/quick/quickwindowagent.cpp +++ b/src/quick/quickwindowagent.cpp @@ -44,17 +44,14 @@ return false; } + // Make sure the native window handle is actually created before we apply + // various hooks. But we don't need the actual window handle so just ignore it. + std::ignore = window->winId(); d->setup(window, new QuickItemDelegate()); d->hostWindow = window; #if defined(Q_OS_WINDOWS) && QWINDOWKIT_CONFIG(ENABLE_WINDOWS_SYSTEM_BORDERS) d->setupWindows10BorderWorkaround(); -#endif - -#ifdef Q_OS_WINDOWS - if (!windowAttribute(QStringLiteral("windows-system-border-enabled")).toBool()) { - window->setFlag(Qt::FramelessWindowHint); - } #endif return true; } -- Gitblit v1.9.1