Skip to content

Commit c2e349f

Browse files
committed
Tested 5.12.8
1 parent d08030e commit c2e349f

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.17)
1+
cmake_minimum_required(VERSION 3.19)
22

33
project(QWindowKit VERSION 1.0.1.0 LANGUAGES CXX)
44

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ You can join our [Discord channel](https://discord.gg/grrM4Tmesy). You can share
4646
|:---------:|:-----------:|:-------------------------:|
4747
| Qt | \>=5.12 | Core, Gui, Widgets, Quick |
4848
| Compiler | \>=C++17 | MSVC 2019, GCC, Clang |
49-
| CMake | \>=3.17 | >=3.20 is recommended |
49+
| CMake | \>=3.19 | >=3.20 is recommended |
5050

5151
### Tested Compilers
5252

examples/mainwindow/main.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ int main(int argc, char *argv[]) {
1313
qputenv("QSG_RHI_BACKEND", "d3d12");
1414
qputenv("QSG_RHI_HDR", "scrgb");
1515
qputenv("QT_QPA_DISABLE_REDIRECTION_SURFACE", "1");
16-
#endif
17-
16+
1817
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(
1918
Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
19+
#endif
20+
2021
QApplication a(argc, argv);
2122

2223
#if 0 && defined(Q_OS_WINDOWS) && QT_VERSION < QT_VERSION_CHECK(6, 0, 0)

examples/mainwindow/mainwindow.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <QtCore/QTime>
99
#include <QtCore/QTimer>
1010
#include <QtGui/QPainter>
11+
#include <QtGui/QWindow>
1112
#include <QtWidgets/QApplication>
1213
#include <QtWidgets/QStyle>
1314
#include <QtWidgets/QPushButton>

examples/qml/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ int main(int argc, char *argv[]) {
1818
qputenv("QSG_RHI_BACKEND", "opengl");
1919
//qputenv("QSG_RHI_HDR", "scrgb");
2020
//qputenv("QT_QPA_DISABLE_REDIRECTION_SURFACE", "1");
21-
#endif
2221
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(
2322
Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
23+
#endif
2424
QGuiApplication application(argc, argv);
2525
QQmlApplicationEngine engine;
2626
QWK::registerTypes(&engine);

qmsetup

0 commit comments

Comments
 (0)