From e67e7e4d3b3030b605655325f4d86cdc9d746ebf Mon Sep 17 00:00:00 2001 From: zhuzihcu Date: Fri, 19 May 2023 09:19:52 +0800 Subject: [PATCH] update --- example/qml/component/CustomWindow.qml | 4 ++++ example/src/main.cpp | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/example/qml/component/CustomWindow.qml b/example/qml/component/CustomWindow.qml index 8eb2114c..ef0b3bbe 100644 --- a/example/qml/component/CustomWindow.qml +++ b/example/qml/component/CustomWindow.qml @@ -12,6 +12,10 @@ FluWindow { property bool appBarVisible: true default property alias content: container.data + Component.onCompleted: { + console.debug(FramelessUtils.frameBorderVisible) + } + FluAppBar { id: title_bar title: window.title diff --git a/example/src/main.cpp b/example/src/main.cpp index cdabd68a..cd3ce8c1 100644 --- a/example/src/main.cpp +++ b/example/src/main.cpp @@ -12,7 +12,7 @@ FRAMELESSHELPER_USE_NAMESPACE -int main(int argc, char *argv[]) + int main(int argc, char *argv[]) { //将样式设置为Basic,不然会导致组件显示异常 qputenv("QT_QUICK_CONTROLS_STYLE","Basic"); @@ -21,6 +21,7 @@ int main(int argc, char *argv[]) QGuiApplication::setOrganizationDomain("https://zhuzichu520.github.io"); QGuiApplication::setApplicationName("FluentUI"); QGuiApplication app(argc, argv); + FramelessConfig::instance()->set(Global::Option::ForceHideWindowFrameBorder); AppInfo* appInfo = new AppInfo(); IPC ipc(0); QString activeWindowEvent = "activeWindow";