Qt: Enable hi-dpi pixmaps

pull/836/head
Connor McLaughlin 5 years ago
parent 42107de50e
commit ad3e93dba4

@ -13,6 +13,7 @@ int main(int argc, char* argv[])
qRegisterMetaType<std::optional<bool>>();
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
#endif

Loading…
Cancel
Save