mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
fix
This commit is contained in:
parent
ddfc0dc3d6
commit
c62e9fd7f6
@ -36,7 +36,9 @@ if __name__ == "__main__":
|
|||||||
import gobject
|
import gobject
|
||||||
|
|
||||||
gobject.overridepathexists()
|
gobject.overridepathexists()
|
||||||
|
QApplication.addLibraryPath(
|
||||||
|
"./LunaTranslator/runtime/PyQt5/Qt5/plugins"
|
||||||
|
) # 中文字符下不能自动加载
|
||||||
QApplication.setAttribute(Qt.ApplicationAttribute.AA_EnableHighDpiScaling)
|
QApplication.setAttribute(Qt.ApplicationAttribute.AA_EnableHighDpiScaling)
|
||||||
QApplication.setAttribute(Qt.ApplicationAttribute.AA_UseHighDpiPixmaps)
|
QApplication.setAttribute(Qt.ApplicationAttribute.AA_UseHighDpiPixmaps)
|
||||||
QApplication.setHighDpiScaleFactorRoundingPolicy(
|
QApplication.setHighDpiScaleFactorRoundingPolicy(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user