diff --git a/example/src/main.cpp b/example/src/main.cpp index d923b320..ff36319d 100644 --- a/example/src/main.cpp +++ b/example/src/main.cpp @@ -21,7 +21,9 @@ FRAMELESSHELPER_USE_NAMESPACE QGuiApplication::setOrganizationDomain("https://zhuzichu520.github.io"); QGuiApplication::setApplicationName("FluentUI"); QGuiApplication app(argc, argv); +#ifdef Q_OS_WIN // 此设置仅在Windows下生效 FramelessConfig::instance()->set(Global::Option::ForceHideWindowFrameBorder); +#endif FramelessConfig::instance()->set(Global::Option::DisableLazyInitializationForMicaMaterial); FramelessConfig::instance()->set(Global::Option::CenterWindowBeforeShow); FramelessConfig::instance()->set(Global::Option::ForceNonNativeBackgroundBlur);