解决Pycharm使用PyQT5无法输入中文(QT无法输入中文)
Tofloor
poster avatar
独影阑珊
deepin
2019-08-10 04:55
Author
使用Pycharm敲PyQt5代码时程序的GUI界面无法输入中文,经过我各种百度,终于解决了这个问题

将附件里面的文件解压放入
  1. /home/用户名/项目路径/venv/lib/python3.5/site-packages/PyQt5/Qt/plugins/platforminputcontexts/
Copy the Code
里面即可
Reply Favorite View the author
All Replies
avatar
独影阑珊
deepin
2019-08-10 04:57
#1
此附件也适用于QT5.4以上无法输入中文的问题,不过我不用QT,具体放到哪个目录请自行百度
Reply View the author
avatar
net_zzp
deepin
2019-08-17 19:46
#2
将fcitx输入法替换成ibus就没有问题了。qt5对fcitx支持有问题。
Reply View the author
avatar
独影阑珊
deepin
2019-08-17 23:02
#3
https://bbs.deepin.org/post/181772
将fcitx输入法替换成ibus就没有问题了。qt5对fcitx支持有问题。

但是搜狗没法用ibus
Reply View the author
avatar
net_zzp
deepin
2019-08-18 03:49
#4
https://bbs.deepin.org/post/181772
但是搜狗没法用ibus

搜狗好像是不行的。
Reply View the author
avatar
byack
deepin
2020-01-22 18:10
#5
终于解决了,谢谢大佬,我可以转载到csdn博客中吗?我会标明转载出处,方便我以后解决这个问题
Reply View the author
avatar
独影阑珊
deepin
2020-02-16 01:58
#6
https://bbs.deepin.org/post/181772
终于解决了,谢谢大佬,我可以转载到csdn博客中吗?我会标明转载出处,方便我以后解决这个问题 ...

                   可以
Reply View the author
avatar
upsco
deepin
2022-05-31 06:32
#7

附件在哪?没看到

Reply View the author
avatar
upsco
deepin
2022-05-31 06:33
#8

没看到附件呀,在哪,请问?

Reply View the author
avatar
独影阑珊
deepin
2022-06-25 05:47
#9
upsco

没看到附件呀,在哪,请问?

应该是这个github链接

年代太久远了,我自己都忘了

Reply View the author
avatar
152******33
deepin
2022-07-20 01:46
#10
独影阑珊

应该是这个github链接

年代太久远了,我自己都忘了

我在命令行切换到root来启动pycharm.sh, pycharm中可以切换输入法, pycharm中启动的pyqt5窗口中不能切换输入法, 请问有解决方法吗? 不明白是什么导致了这样

Reply View the author
avatar
181******93
deepin
2024-07-16 20:30
#11

非常感谢楼主,楼主太牛逼了,我我百度了很多都不行,本来这次也不抱希望,没想到瞎猫碰上死耗子,哎,还真行了!

楼主的那个

.so文件是怎么编出来的?

Reply View the author