From 356059ec21c20a40bf9b47327930afc90b52170b Mon Sep 17 00:00:00 2001 From: Z-bin <1134636325@qq.com> Date: Mon, 20 Jul 2020 16:07:28 +0800 Subject: [PATCH] Fix HD screen parameter error --- src/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index d6195efd..8762c8ce 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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);