(fix): Allow fractional DPI scaling

This commit is contained in:
txtsd 2022-03-20 11:30:56 +05:30
parent 8bc6cdf55c
commit 2e40ab6244
No known key found for this signature in database
GPG Key ID: 000F85679D4B6B53

View File

@ -29,6 +29,10 @@ int main(int argc, char *argv[])
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
#endif #endif
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
#endif
// initialize Qt // initialize Qt
Application app(argc, argv); Application app(argc, argv);