diff --git a/app/ui/contact/contactInfo.py b/app/ui/contact/contactInfo.py index 03b8884..d9651b6 100644 --- a/app/ui/contact/contactInfo.py +++ b/app/ui/contact/contactInfo.py @@ -31,7 +31,6 @@ class ContactInfo(QWidget, Ui_Form): self.btn_report.clicked.connect(self.annual_report) self.btn_analysis.clicked.connect(self.analysis) self.btn_emotion.clicked.connect(self.emotionale_Analysis) - self.label_remark.setText(self.contact.remark) self.stackedWidget.addWidget(self.view_userinfo) self.stackedWidget.setCurrentWidget(self.view_userinfo) menu = QMenu(self) diff --git a/main.py b/main.py index 2dbc7f0..cdf200e 100644 --- a/main.py +++ b/main.py @@ -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):