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 |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/examples/qml/main.cpp b/examples/qml/main.cpp
index 48dba90..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>
 
@@ -15,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