| | |
| | | cmake_minimum_required(VERSION 3.17) |
| | | cmake_minimum_required(VERSION 3.19) |
| | | |
| | | project(QWindowKit VERSION 1.0.1.0 LANGUAGES CXX) |
| | | |
| | |
| | | |:---------:|:-----------:|:-------------------------:| |
| | | | Qt | \>=5.12 | Core, Gui, Widgets, Quick | |
| | | | Compiler | \>=C++17 | MSVC 2019, GCC, Clang | |
| | | | CMake | \>=3.17 | >=3.20 is recommended | |
| | | | CMake | \>=3.19 | >=3.20 is recommended | |
| | | |
| | | ### Tested Compilers |
| | | |
| | |
| | | qputenv("QSG_RHI_BACKEND", "d3d12"); |
| | | qputenv("QSG_RHI_HDR", "scrgb"); |
| | | qputenv("QT_QPA_DISABLE_REDIRECTION_SURFACE", "1"); |
| | | #endif |
| | | |
| | | QGuiApplication::setHighDpiScaleFactorRoundingPolicy( |
| | | Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); |
| | | #endif |
| | | |
| | | QApplication a(argc, argv); |
| | | |
| | | #if 0 && defined(Q_OS_WINDOWS) && QT_VERSION < QT_VERSION_CHECK(6, 0, 0) |
| | |
| | | #include <QtCore/QTime> |
| | | #include <QtCore/QTimer> |
| | | #include <QtGui/QPainter> |
| | | #include <QtGui/QWindow> |
| | | #include <QtWidgets/QApplication> |
| | | #include <QtWidgets/QStyle> |
| | | #include <QtWidgets/QPushButton> |
| | |
| | | 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); |
| | |
| | | Subproject commit 177eeff54f410035b9ddb68fa3d5a53055aed131 |
| | | Subproject commit 99ca80fd63e34f4bb54dcc48db09a66e86f5517d |