From 357532958f2e806c69c96f018333a45e65e35201 Mon Sep 17 00:00:00 2001 From: Zhao Yuhang <2546789017@qq.com> Date: 周二, 07 5月 2024 22:17:53 +0800 Subject: [PATCH] improve sysmenu behavior --- examples/qml/main.cpp | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/examples/qml/main.cpp b/examples/qml/main.cpp index 1a898bb..3daf57f 100644 --- a/examples/qml/main.cpp +++ b/examples/qml/main.cpp @@ -1,8 +1,10 @@ -// Copyright (C) 2023-2024 Stdware Collections +// Copyright (C) 2023-2024 Stdware Collections (https://www.github.com/stdware) +// Copyright (C) 2021-2023 wangwenx190 (Yuhang Zhao) // SPDX-License-Identifier: Apache-2.0 #include <QtGui/QGuiApplication> #include <QtQml/QQmlApplicationEngine> +#include <QtQuick/QQuickWindow> #include <QWKQuick/qwkquickglobal.h> @@ -22,6 +24,8 @@ Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); #endif QGuiApplication application(argc, argv); + // Make sure alpha channel is requested, our special effects on Windows depends on it. + QQuickWindow::setDefaultAlphaBuffer(true); QQmlApplicationEngine engine; QWK::registerTypes(&engine); engine.load(QUrl(QStringLiteral("qrc:///main.qml"))); -- Gitblit v1.9.1