This commit is contained in:
恍兮惚兮 2024-05-02 09:28:33 +08:00
parent ddfc0dc3d6
commit c62e9fd7f6

View File

@ -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(