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 | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/qml/main.cpp b/examples/qml/main.cpp index 66b3a18..8332f5d 100644 --- a/examples/qml/main.cpp +++ b/examples/qml/main.cpp @@ -1,4 +1,5 @@ -// 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> @@ -18,9 +19,9 @@ qputenv("QSG_RHI_BACKEND", "opengl"); //qputenv("QSG_RHI_HDR", "scrgb"); //qputenv("QT_QPA_DISABLE_REDIRECTION_SURFACE", "1"); -#endif QGuiApplication::setHighDpiScaleFactorRoundingPolicy( Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); +#endif QGuiApplication application(argc, argv); QQmlApplicationEngine engine; QWK::registerTypes(&engine); -- Gitblit v1.9.1