适配高分辨率#35

This commit is contained in:
shuaikangzhou
2023-12-19 20:54:43 +08:00
parent c25dffd08c
commit e5cc2df3ec
2 changed files with 3 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ import traceback
from PyQt5.QtGui import QFont
from PyQt5.QtWidgets import *
from PyQt5.QtCore import Qt
from app.DataBase import close_db
from app.log import logger
@@ -12,7 +13,8 @@ from app.ui import mainview
from app.ui.tool.pc_decrypt import pc_decrypt
from app.config import version
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID("WeChatReport")
QApplication.setAttribute(Qt.AA_EnableHighDpiScaling,True)
QApplication.setAttribute(Qt.AA_UseHighDpiPixmaps,True)
class ViewController(QWidget):
def __init__(self):