[Newbies] Deepin下Qt 中文无法输入,mysql无法连接
Tofloor
poster avatar
守护
deepin
2022-07-20 16:00
Author

我用的是Deepin 社区版20.6,Qt 6.2版。在Qt Creator里面始终无法输入中文,网上找了很多资料,都说输入法插件的.so文件重新编译一下放到相应目录就可以,我换了各种版本的Qt ,下载、编译各种版本的.so文件都没有成功。用Qt连接mysql的时候总是出现Driver not loaded Driver not loaded,网上翻了几天解决方法无非是添加mysql的驱动文件libmysqlclient.so,我是下载文件也不行,自己编译也不行,终于黔驴技穷,最后怀疑是不是跟系统有关,望各位大神指点一二,不胜感激!

Reply Favorite View the author
All Replies
weboob
deepin
2022-07-20 17:17
#1

不懂帮顶!!!!

image.png

image.png

Reply View the author
BG7ZAG
deepin
2022-07-20 17:23
#2

换个输入法试试,用fcitx5试试 https://bbs.deepin.org/post/224852

Reply View the author
守护
deepin
2022-07-20 17:32
#3

也换过很多输入法,在Qt里面输入法提示无输入窗口,应该是Qt输入法插件的问题,只是怎么更换插件的.so文件都不成功。

Reply View the author
安洛
deepin
2022-07-20 17:52
#4

确实是,官网下载安装的qt creator无法输入中文,商店里面的可以。可能是因为qt creator使用了qt6?fcitx不能在qt6输入,fcitx5可能可以。

Reply View the author
公子独白
deepin
2022-07-20 18:04
#5

cp /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so $QT_DIR/Tools/QtCreator/lib/Qt/plugins/platforminputcontexts

Reply View the author
咿呀
deepin beta test group
2022-07-20 18:23
#6

复制系统fcitx插件到目标软件插件目录,下图以keepassxc为例,其他QT程序类似

图片.png

Reply View the author
sammy-621
deepin
2022-07-20 19:05
#7

其实,你所说的拷贝输入法插件的.so文件的方法是好使的,但前提是你的Qt Creator版本要够低。我用的Qt Creator 7.0.0,也是不能输入中文。这跟Deepin无关,你在别的发行版也存在这个问题,目前无解。

Reply View the author
公子独白
deepin
2022-07-20 22:10
#8
sammy-621

其实,你所说的拷贝输入法插件的.so文件的方法是好使的,但前提是你的Qt Creator版本要够低。我用的Qt Creator 7.0.0,也是不能输入中文。这跟Deepin无关,你在别的发行版也存在这个问题,目前无解。

换ibus输入法,qt天生兼容

Reply View the author
守护
deepin
2022-07-21 15:52
#9

这个方法也试过了,还是不行。

Reply View the author
zccrs
deepin
2022-07-21 17:49
#10

你的Qt不是用的系统的吧?

Reply View the author
守护
deepin
2022-07-22 16:38
#11

deepin 应用商店下载的Qt版本太低,官网下载Qt 5,Qt 6都不行,现在用5.12版,折腾这么久,输入法还是不行,数据库sqlserver,和mysql都连不上,谁能讲讲详细步骤。

Reply View the author
蒋先生 Mr.Jiang
deepin
2024-05-07 15:14
#12

我也碰到了相同的问题,我的QT Creator 是在线安装的最新版 13.0.0 ,基于 Qt 6.6.0 因此,我怀疑,是不是之前的复制 libfcitxplatforminputcontextplugin.so 的方法,要换成对就 qt6的 .so 才行?

Reply View the author
蒋先生 Mr.Jiang
deepin
2024-05-07 15:31
#13
weboob

不懂帮顶!!!!

image.png

image.png

我也碰到了相同的问题,我的QT Creator 是在线安装的最新版 13.0.0 ,基于 Qt 6.6.0 因此,我怀疑,是不是之前的复制 libfcitxplatforminputcontextplugin.so 的方法,要换成对就 qt6的 .so 才行?

您这儿这个截图,之所以可以输入中文,我想是因为这个QT Creator 4.8.2 版本够低。可能是超过 7.0 就不行了。

Reply View the author