| | |
| | | // 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> |
| | | |
| | |
| | | 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); |