From 99bfa7739d8a3974989f1774b3b9ad9e060eba15 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <zhaoyuhang@rankyee.com> Date: 周五, 05 1月 2024 17:17:44 +0800 Subject: [PATCH] update qmsetup --- examples/qml/main.cpp | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/examples/qml/main.cpp b/examples/qml/main.cpp index e9cf0a7..8332f5d 100644 --- a/examples/qml/main.cpp +++ b/examples/qml/main.cpp @@ -1,3 +1,7 @@ +// 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> @@ -12,12 +16,12 @@ qputenv("QT_QUICK_CONTROLS_STYLE", "Default"); #endif #if 0 - qputenv("QSG_RHI_BACKEND", "d3d12"); - qputenv("QSG_RHI_HDR", "scrgb"); - qputenv("QT_QPA_DISABLE_REDIRECTION_SURFACE", "1"); -#endif + qputenv("QSG_RHI_BACKEND", "opengl"); + //qputenv("QSG_RHI_HDR", "scrgb"); + //qputenv("QT_QPA_DISABLE_REDIRECTION_SURFACE", "1"); QGuiApplication::setHighDpiScaleFactorRoundingPolicy( Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); +#endif QGuiApplication application(argc, argv); QQmlApplicationEngine engine; QWK::registerTypes(&engine); -- Gitblit v1.9.1