Explicitly request High Dpi scaling on Qt >= 5.6

This commit is contained in:
Tasos Sahanidis committed 2018-06-25 20:43:37 +03:00
1 parent 03fcb34c6c
commit 593aab1171
1 file changed
+4
+4
View File
@@ -180,6 +180,10 @@ int main(int argc, char *argv[]){
// Enable HiDPI support
qApp->setAttribute(Qt::AA_UseHighDpiPixmaps);
#endif
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
// Explicitly request high dpi scaling
qApp->setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
// Parse arguments
switch (parseCommandLine(parser, &errorMessage)) {