This commit is contained in:
恍兮惚兮 2024-11-15 00:53:49 +08:00
parent 2cff474cc2
commit 57d2a0ff9d

View File

@ -32,7 +32,9 @@ def prepareqtenv():
if isqt5:
# 中文字符下不能自动加载
QApplication.addLibraryPath("./files/runtime/PyQt5/Qt5/plugins")
plgs = "./files/runtime/PyQt5/Qt5/plugins"
if os.path.exists(plgs):
QApplication.addLibraryPath(plgs)
QApplication.setAttribute(Qt.ApplicationAttribute.AA_EnableHighDpiScaling)
QApplication.setAttribute(Qt.ApplicationAttribute.AA_UseHighDpiPixmaps)
if os.path.exists("./files/runtime/PyQt5/Qt5/bin/Qt5WebEngineCore.dll"):