I need to change keyboard layout when focus are on some QLineEdit.
It is possible on windows?
I need to change keyboard layout when focus are on some QLineEdit.
It is possible on windows?
I don't know any feature in Qt to directly do that (but I might be wrong).
Is it even possible to set a different keyboard layout for a single program in windows, let alone for a single widget?
If so, I guess you need to use some windows api's
The only thing I can think about is Qt::InputMethodHint, which you can set on a widget QWidget::setInputMethodHints(). Please let us know if this works. Thanks
this is not work.
This methods are for formating input text (for example only number), but it can't change keyboard layout.
ActivateKeyboardLayout( (HKL)HKL_NEXT, 0 );
Is there any way without winapi?
Bookmarks