Skip to content

Commit

Permalink
Merge pull request #2718 from therealfarfetchd/hidpi-icon-fix
Browse files Browse the repository at this point in the history
Enable HiDPI pixmaps to fix icon scaling for HiDPI displays
  • Loading branch information
peterix committed Jun 30, 2019
2 parents 63330bf + a55fa04 commit 0b86a7e
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 0b86a7e

Please sign in to comment.