赞
踩
from PyQt5.QtCore import Qt QApplication.setAttribute(Qt.AA_EnableHighDpiScaling) app = QApplication(sys.argv)
缩放会导致控件变动带来的字体大小等奇怪的变化行为