Search code examples
c++qtinputglobalizationime

Microsoft IME disabled while in application


We need our application to be able to accept languages such as Korean/Japanese etc. as input.

However, if I have my Keyboard language set to Korean then in the bottom right of the task bar I get this:

IME disabled

and if I try to input anything, It's just regular english characters.

In any other windows application (including stack overflow) I can input these characters (ex ㅔㄹㅎ), and this is what the taskbar looks like:

enter image description here

I'm using Qt and C++, is there any way I can get the same behaviour as any other application?


Solution

  • We are using custom text edits rendered with OpenGL/DirectX. On the Gl/Dx widget I needed to add setAttribute(Qt::WA_InputMethodEnabled); in order to enable the IME.