Indeed when tested on my laptop which is updated to the latest packages it doesn't work. Rebuilding qtgui with ibus and setting QT_IM_MODULE to ibus enables input of japanese chars in kde apps. Thanks joost!Zeikcied wrote: That doesn't help, actually.
I switched the QT_IM_MODULE to xim, which is what's in .xprofile by default on Sabayon, and it doesn't work. I even did "echo $QT_IM_MODULE" to make sure it was set to xim, and qtconfig is set to use xim, as well. It still works in GTK apps like Firefox and Chrome, but not Qt5 apps like Kate or Choqok.
I think I found out the problem. Files named libibusplatforminputcontextplugin.so (in /usr/lib64/qt5/plugins/platforminputcontexts/ and /usr/lib/qt5/plugins/platforminputcontexts/) are supposed to be provided by qtgui, however Sabayon has the "-ibus" USE flag, which presumably prevents those files from being made. They're not on my system, for example.
Compiz, KDE, Gnome, Fluxbox, etc...