We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb2f77b commit d7274f1Copy full SHA for d7274f1
src/main.cpp
@@ -102,9 +102,13 @@ void fallbackFonts()
102
103
int main( int argc, char** argv )
104
{
105
-#if QT_VERSION >= 0x050600
+#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
106
/* Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created. */
107
- QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+ QCoreApplication::setAttribute( Qt::AA_EnableHighDpiScaling );
108
+ QCoreApplication::setAttribute( Qt::AA_UseHighDpiPixmaps );
109
+#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
110
+ QGuiApplication::setHighDpiScaleFactorRoundingPolicy( Qt::HighDpiScaleFactorRoundingPolicy::PassThrough );
111
+#endif
112
#endif
113
114
#if defined (USE_KDE)
0 commit comments