Isn't it easier to switch the keyboard layout on focusInEvent and switch it back on focusOutEvent?
Isn't it easier to switch the keyboard layout on focusInEvent and switch it back on focusOutEvent?
Sorry for being obtuse, but how do I switch the keyboard layout?
P.S in QApplication I found two function that might help: keyboardInputDirection() and keyboardInputLocale() but unfortunately they have no set equivalent.
I never have done that myself and on linux it might be complicated because it depends on the graphical environment (KDE, Gnome, ...).
For windows you can have a look at http://msdn.microsoft.com/en-us/libr...=VS.85%29.aspx: ActivateKeyboardLayout, GetKeyboardLayout and GetKeyboardLayoutList.
On KDE there is probably some dbus call that will do the trick.
Bookmarks