Yuhang Zhao
2024-12-09 42977738aba59150109fea3e9edd2b74643c1000
src/widgets/widgetwindowagent.cpp
@@ -64,6 +64,12 @@
#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()) {
            w->setWindowFlag(Qt::FramelessWindowHint);
        }
#endif
        return true;
    }