From 2d2fc799bc698ebf7e7c8bcc394366d0d7bf071b Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周二, 20 2月 2024 18:18:39 +0800 Subject: [PATCH] Partially finish the bug after window close and reshow --- examples/qml/main.cpp | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/examples/qml/main.cpp b/examples/qml/main.cpp index 8332f5d..3daf57f 100644 --- a/examples/qml/main.cpp +++ b/examples/qml/main.cpp @@ -4,6 +4,7 @@ #include <QtGui/QGuiApplication> #include <QtQml/QQmlApplicationEngine> +#include <QtQuick/QQuickWindow> #include <QWKQuick/qwkquickglobal.h> @@ -23,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