Change input keyboard language / layout
-
wrote on 16 Aug 2021, 09:14 last edited by Jon Levanon
Hi, using Qt 5.10 on ubunu. Trying to make sure users are on one language (english) and not the other (I can assume there are only two, and english is needed). Couldn't find a way to get the current keyboard layout/language, QInputMethod's locale always return the default english even if I switched to the other language with start+space.
Any advice?Thanks
-
Hi, using Qt 5.10 on ubunu. Trying to make sure users are on one language (english) and not the other (I can assume there are only two, and english is needed). Couldn't find a way to get the current keyboard layout/language, QInputMethod's locale always return the default english even if I switched to the other language with start+space.
Any advice?Thanks
@Jon-Levanon I'm not sure I understand.
Are you talking about Qt Virtual Keyboard or do you want to change the keyboard layout in the system (if so: why?)? -
@Jon-Levanon I'm not sure I understand.
Are you talking about Qt Virtual Keyboard or do you want to change the keyboard layout in the system (if so: why?)?wrote on 16 Aug 2021, 09:33 last edited by@jsulm Change keyboard layout in the system. We need to verify it is on english in order for our app to understand the input it gets...
-
@jsulm Change keyboard layout in the system. We need to verify it is on english in order for our app to understand the input it gets...
@Jon-Levanon Not sure why you need to set specific keyboard layout to understand user input?
If user inputs Z then it is Z doesn't matter which exact key on the keyboard is assigned to Z in the current layout.
As user I would not line an application which changes my keyboard layout... -
wrote on 16 Aug 2021, 09:46 last edited by
Well if you start the app on a different layout (in our case, a different language), you might not notice it and the we would expect 'a' but get a ש. This is problematic. Maybe my phrasing wasn't right, it's more about the language and not the layout.
1/5