Skip to content

Commit

Permalink
Enable HiDPI pixmaps to fix icon scaling for HiDPI displays
Browse files Browse the repository at this point in the history
  • Loading branch information
2xsaiko committed Jun 27, 2019
1 parent fde43c9 commit a55fa04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/main.cpp
Expand Up @@ -30,6 +30,7 @@ int main(int argc, char *argv[])

#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
#endif

// initialize Qt
Expand Down

0 comments on commit a55fa04

Please sign in to comment.