Sine Striker
2024-01-01 c2e349f1c38b55fd12f8ae537e754fa6658ab631
Tested 5.12.8
6个文件已修改
12 ■■■■■ 已修改文件
CMakeLists.txt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
README.md 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
examples/mainwindow/main.cpp 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
examples/mainwindow/mainwindow.cpp 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
examples/qml/main.cpp 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
qmsetup @ 99ca80 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
CMakeLists.txt
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.17)
cmake_minimum_required(VERSION 3.19)
project(QWindowKit VERSION 1.0.1.0 LANGUAGES CXX)
README.md
@@ -46,7 +46,7 @@
|:---------:|:-----------:|:-------------------------:|
|    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
examples/mainwindow/main.cpp
@@ -13,10 +13,11 @@
    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)
examples/mainwindow/mainwindow.cpp
@@ -8,6 +8,7 @@
#include <QtCore/QTime>
#include <QtCore/QTimer>
#include <QtGui/QPainter>
#include <QtGui/QWindow>
#include <QtWidgets/QApplication>
#include <QtWidgets/QStyle>
#include <QtWidgets/QPushButton>
examples/qml/main.cpp
@@ -18,9 +18,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);
qmsetup
@@ -1 +1 @@
Subproject commit 177eeff54f410035b9ddb68fa3d5a53055aed131
Subproject commit 99ca80fd63e34f4bb54dcc48db09a66e86f5517d