Can't use fcitx for Chinese with QtCreator

Bug #1534492 reported by XiaoGuo, Liu on 2016-01-15
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu SDK IDE
FanJun Kong - ( BH1SCW )

Bug Description

I have recently installed the latest ubuntu SDK, and one of the change is that I cannot input Chinese characters any more. For the previous releases, I could input Chinese characters without any problems. On my ubuntu system, I can input Chinese characters in other editors like "geany" or "leafpad".

1) My ubuntu system is vivid
2) The ubuntu-sdk-ide version:

liuxg@liuxg:~$ apt-cache policy ubuntu-sdk-ide
  Installed: 3.5.0+15.10.20151024-0ubuntu1~97+201511170914~ubuntu15.04.1
  Candidate: 3.5.0+15.10.20151024-0ubuntu1~97+201511170914~ubuntu15.04.1
  Version table:
 *** 3.5.0+15.10.20151024-0ubuntu1~97+201511170914~ubuntu15.04.1 0
        500 vivid/main amd64 Packages
        100 /var/lib/dpkg/status

3) Install sogoupinyin, which is based on fcitx, for Chinese input method:
This includes fcitx-frontend-qt5 to implement the input panel.

Thanks & best regards,

summary: - Cannot input Chinese characters into the Qt creator editor
+ Can't use fcitx for Chinese with QtCreator
description: updated
Christian Dywan (kalikiana) wrote :

ubuntu-sdk-dev which contains the Qt5 QtCreator now relies on has

ls /usr/ubuntu-sdk-dev/plugins/platforminputcontexts/

I suspect it never sees the fcitx plugin.

Christian Dywan (kalikiana) wrote :

And for comparison, ibus works perfectly, for exactly for Japanese via anthy, which makes sense because the plugin is included.

Cheng Lu (dawndiy) wrote :

@XiaoGuo, Liu I can use fcitx perfectly in the latest version of Ubuntu SDK without any additional settings, but my version of Ubuntu system is 15.10 wily.

XiaoGuo, Liu (liu-xiao-guo) wrote :

Hi Cheng Lu,

I just installed a brand-new Wily in my VMWare, and installed the sogou input method and SDK. It did not work for me at all. Did you ever upgrade your Ubuntu from 15.04 to 15.10? Did you install the latest Ubuntu SDK at the instruction on the page

If you use an old SDK installation, it may work. There are a lot of changes in the recent SDK release. Could you please tell us your SDK version? My version is like:

liuxg@ubuntu:~$ apt-cache policy ubuntu-sdk-ide
  Installed: 3.5.0+15.10.20151024-0ubuntu1~97+201511170914~ubuntu15.10.1
  Candidate: 3.5.0+15.10.20151024-0ubuntu1~97+201511170914~ubuntu15.10.1
  Version table:
 *** 3.5.0+15.10.20151024-0ubuntu1~97+201511170914~ubuntu15.10.1 0
        500 wily/main amd64 Packages
        100 /var/lib/dpkg/status

Cheng Lu (dawndiy) wrote :

Hi XiaoGuo Liu ,

Sorry about the report at #3. I tried again that can NOT use fcitx to input Chinese in Ubuntu-SDK(3.5.0+15.10.20151024-0ubuntu1~97+201511170914~ubuntu15.10.1). I'm not use sogou input method but the original fcitx-pinyin, they are use the same fcitx input method framework.
I remember that I can use fcitx before, may be in the old version SDK. But now, I confirm that I can NOT use fcitx in the Ubuntu-SDK-IDE as same as you.

Hi all,

Work around method is as follow:

make sure you have install fcitx-frontend-qt5, and then you need to run:
sudo ln -s /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/ /usr/ubuntu-sdk-ide/bin/plugins/platforminputcontexts/

restart your qtcreator, then it should work.


we need to patch ubuntu-sdk-ide and rebuild new package for user to update

Cheng Lu (dawndiy) wrote :

Hi FJKong,

I test your method. It works for me to input Chinese in ubuntu-sdk-ide by using fcitx now.

Changed in ubuntu-sdk-ide:
assignee: nobody → F.J Kong (fjkong)
status: New → In Progress
Changed in ubuntu-sdk-ide:
status: In Progress → Fix Released
XiaoGuo, Liu (liu-xiao-guo) wrote :

I find that I cannot input Chinese characters in a TextField input. Is this sth related to this bug?

XiaoGuo, Liu (liu-xiao-guo) wrote :

I just found that this problem happened again on the latest SDK installation on 16.04 LTS:

iuxg@liuxg:~$ apt-cache policy ubuntu-sdk-ide
  Installed: 3.5.1~133+201605270854~ubuntu16.04.1
  Candidate: 3.5.1~133+201605270854~ubuntu16.04.1
  Version table:
 *** 3.5.1~133+201605270854~ubuntu16.04.1 500
        500 xenial/main amd64 Packages
        100 /var/lib/dpkg/status
     3.5.1~133+201604191659~ubuntu16.04.1 500
        500 xenial/main amd64 Packages

Changed in ubuntu-sdk-ide:
status: Fix Released → New
Cheng Lu (dawndiy) wrote :

Hi XiaoGuo,

I met this problem again as you described. And I fix it like this:

back up your and make a link file from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/ instead.

sudo mv /usr/ubuntu-sdk-ide/bin/plugins/platforminputcontexts/ /usr/ubuntu-sdk-ide/bin/plugins/platforminputcontexts/
sudo ln -s /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/ /usr/ubuntu-sdk-ide/bin/plugins/platforminputcontexts/

Now you can switch fcitx input method in the Ubuntu-SDK-IDE. But not work for the App run from SDK.

sudo mv /usr/ubuntu-sdk-dev/plugins/platforminputcontexts/ /usr/ubuntu-sdk-dev/plugins/platforminputcontexts/
sudo ln -s /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/ /usr/ubuntu-sdk-dev/plugins/platforminputcontexts/

And now the App run from SDK can use fcitx input method too!

Is this still a issue?

Changed in ubuntu-sdk-ide:
status: New → Incomplete
XiaoGuo, Liu (liu-xiao-guo) wrote :

Yes, this is still an issue in the new SDK installation (LXD). I cannot type any Chinese in the editor.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers