Intermediate: how to get keyboard layout keys
-
hi guys
I am making a virtual keyboard and want to show the keys of the currently used layout. Any idea how to find
1- currently used layout
2- Character of each key in this layoutthanks
-
What is your approach for making a virtual keyboard?
I haven't done such task but my first idea if I were you would be to use a QGridLayout with QPushButtons, class (or data structure such as QMap) to store for values of each key depending the keyboard layout and a enum variable to indicate which layout is active.
-
I am still thinking for an appropriate approach, however QMap binds value to a key. I need to read for example
English Layout : Key number 6 first line is Y
German Layout: Key number 6 first line is Z -
Use QVector to describe values of keys based on their index.
-
Please give me an example
-
I am not asking about how to build array but asking about how to determine which character is on the key
-
[quote author="SherifOmran" date="1347122963"]Please give me an example [/quote]
Sorry but I don't have time to write examples for custom virtual keyboards just to post them in a forum. Try to do it yourself and you can rely on me and the other people at Qt Dev Net for advises.
-
Please read Qt documentation about QPushButton, signals and slots to learn how to detect which button is pressed and which character is selected.
-
I have a many buttons that form a virtual keyboard, but I want to set their label with the currently selected layout, how can I get the characters of each keyboard keys?
Any Idea?
-
How to determine the Qt:key of the current layout. Very simple, I need to paint a Virtual Keyboard similar to this site when I select a keyboard layout, I need my application to do it
http://msdn.microsoft.com/en-us/goglobal/bb964651.aspx