From 9b189f276e9db1e1228594da938ecb6975383fab Mon Sep 17 00:00:00 2001 From: zty199 <1282441920@qq.com> Date: Wed, 30 Jun 2021 14:24:22 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=B0=9D=E8=AF=95=E5=BC=80=E5=90=AF?= =?UTF-8?q?=20Hidpi=20=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index bc309fb..bf07a8c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -10,6 +10,7 @@ DWIDGET_USE_NAMESPACE int main(int argc, char *argv[]) { DApplication::loadDXcbPlugin(); // 让 bar 处在标题栏中 + DApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // 开启 Hidpi 支持 DApplication a(argc, argv); a.setAttribute(Qt::AA_UseHighDpiPixmaps);