From c62e9fd7f6ff5d148cfed866d80cb36cc652e515 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Thu, 2 May 2024 09:28:33 +0800 Subject: [PATCH] fix --- LunaTranslator/LunaTranslator/LunaTranslator_main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/LunaTranslator_main.py b/LunaTranslator/LunaTranslator/LunaTranslator_main.py index 6c53c1a2..0ce28aaa 100644 --- a/LunaTranslator/LunaTranslator/LunaTranslator_main.py +++ b/LunaTranslator/LunaTranslator/LunaTranslator_main.py @@ -36,7 +36,9 @@ if __name__ == "__main__": import gobject gobject.overridepathexists() - + QApplication.addLibraryPath( + "./LunaTranslator/runtime/PyQt5/Qt5/plugins" + ) # 中文字符下不能自动加载 QApplication.setAttribute(Qt.ApplicationAttribute.AA_EnableHighDpiScaling) QApplication.setAttribute(Qt.ApplicationAttribute.AA_UseHighDpiPixmaps) QApplication.setHighDpiScaleFactorRoundingPolicy(