The problem after a recent update in my Ubuntu 13.10 with Unity.
When typing something in Qt Creator 3.0.1 or in my own program compiled with Qt 5.2.1 (from qt-project.org), I can't change keyboard layout. For example, if current layout was
En when I launched the program, then only English letters will be typed in it, even if I switch to Russian language. If I press
Shift, the tray icon does change from
Ru, and it applies to most programs but not to some Qt programs. To change layout, I have to relaunch program or to use copy-paste from an input field in another program!
Not all Qt programs have this problem — for example, KDevelop doesn't.
Upgrading Ubuntu from 13.10 to 14.04 beta didn't solve this problem (while it fixed another bug, influencing shortcuts in Russian layout in LibreOffice).
What can cause this strange behavior?