Fix HD screen parameter error

This commit is contained in:
Z-bin 2020-07-20 16:07:28 +08:00
parent 739b387cc5
commit 356059ec21
1 changed files with 3 additions and 4 deletions

View File

@ -34,14 +34,13 @@ int main(int argc, char *argv[])
{
//QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication a(argc, argv);
if (QApplication::desktop()->width() >= 2560) {
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
#endif
}
QApplication a(argc, argv);
openlog(LOG_IDENT, LOG_NDELAY | LOG_NOWAIT | LOG_PID, LOG_USER);