From dea0a22b67b4cb21ba28638cc048fe29036f2522 Mon Sep 17 00:00:00 2001 From: M4x Date: Thu, 3 Oct 2019 23:34:11 -0700 Subject: [PATCH] Impove resolution on HiDPI --- v2rayL-GUI/v2rayLui.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/v2rayL-GUI/v2rayLui.py b/v2rayL-GUI/v2rayLui.py index 2e0be85..15f127f 100644 --- a/v2rayL-GUI/v2rayLui.py +++ b/v2rayL-GUI/v2rayLui.py @@ -12,9 +12,10 @@ QMessageBox, QFileDialog, QSystemTrayIcon, - qApp + qApp, + QMainWindow ) - ++from PyQt5.QtCore import Qt from PyQt5.QtGui import QIcon, QPixmap from v2rayL_api import V2rayL, MyException import pyzbar.pyzbar as pyzbar @@ -482,6 +483,7 @@ def output_conf_by_qr(self, region): if __name__ == "__main__": import sys + QApplication.setAttribute(Qt.AA_EnableHighDpiScaling) app = QApplication(sys.argv) myWin = MyMainWindow() # 显示在屏幕上