HiDPI support for Qt GUI

This commit is contained in:
KAMiKAZOW 2019-06-08 20:53:25 +02:00 committed by endrift
parent 442a0794be
commit 34ddae8e4d
1 changed files with 1 additions and 0 deletions

View File

@ -68,6 +68,7 @@ int main(int argc, char* argv[]) {
QApplication::setApplicationName(projectName); QApplication::setApplicationName(projectName);
QApplication::setApplicationVersion(projectVersion); QApplication::setApplicationVersion(projectVersion);
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#ifdef BUILD_GLES2 #ifdef BUILD_GLES2
QSurfaceFormat format; QSurfaceFormat format;