Commit b8f12d57 authored by Moody Liu's avatar Moody Liu Committed by Laurent Montel
Browse files

kalendarac: set AA_EnableHighDpiScaling attribute before constructing QGuiApplication

(cherry picked from commit cb8e88e6)
parent 50e6e1a4
Pipeline #265966 skipped
......@@ -12,10 +12,13 @@
int main(int argc, char **argv)
{
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
// set this attribute before contructing QGuiApplication
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
QGuiApplication app(argc, argv);
app.setQuitOnLastWindowClosed(false);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment