<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Intermediate: how to get keyboard layout keys]]></title><description><![CDATA[<p dir="auto">hi guys</p>
<p dir="auto">I am making a virtual keyboard and want to show the keys of the currently used layout. Any idea how to find</p>
<p dir="auto">1- currently used layout<br />
2- Character of each key in this layout</p>
<p dir="auto">thanks</p>
]]></description><link>https://forum.qt.io/topic/19701/intermediate-how-to-get-keyboard-layout-keys</link><generator>RSS for Node</generator><lastBuildDate>Wed, 06 May 2026 20:55:40 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/19701.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 08 Sep 2012 02:56:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Intermediate: how to get keyboard layout keys on Sat, 08 Sep 2012 18:46:52 GMT]]></title><description><![CDATA[<p dir="auto">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<br />
<a href="http://msdn.microsoft.com/en-us/goglobal/bb964651.aspx" target="_blank" rel="noopener noreferrer nofollow ugc">http://msdn.microsoft.com/en-us/goglobal/bb964651.aspx</a></p>
]]></description><link>https://forum.qt.io/post/149906</link><guid isPermaLink="true">https://forum.qt.io/post/149906</guid><dc:creator><![CDATA[SherifOmran]]></dc:creator><pubDate>Sat, 08 Sep 2012 18:46:52 GMT</pubDate></item><item><title><![CDATA[Reply to Intermediate: how to get keyboard layout keys on Sat, 08 Sep 2012 18:17:33 GMT]]></title><description><![CDATA[<p dir="auto">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?</p>
<p dir="auto">Any Idea?</p>
]]></description><link>https://forum.qt.io/post/149913</link><guid isPermaLink="true">https://forum.qt.io/post/149913</guid><dc:creator><![CDATA[SherifOmran]]></dc:creator><pubDate>Sat, 08 Sep 2012 18:17:33 GMT</pubDate></item><item><title><![CDATA[Reply to Intermediate: how to get keyboard layout keys on Sat, 08 Sep 2012 17:22:54 GMT]]></title><description><![CDATA[<p dir="auto">Please read Qt documentation about QPushButton, signals and slots to learn how to detect which button is pressed and which character is selected.</p>
]]></description><link>https://forum.qt.io/post/149904</link><guid isPermaLink="true">https://forum.qt.io/post/149904</guid><dc:creator><![CDATA[leon.anavi]]></dc:creator><pubDate>Sat, 08 Sep 2012 17:22:54 GMT</pubDate></item><item><title><![CDATA[Reply to Intermediate: how to get keyboard layout keys on Sat, 08 Sep 2012 16:52:16 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="SherifOmran" date="1347122963"]Please give me an example [/quote]</p>
<p dir="auto">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.</p>
]]></description><link>https://forum.qt.io/post/149901</link><guid isPermaLink="true">https://forum.qt.io/post/149901</guid><dc:creator><![CDATA[leon.anavi]]></dc:creator><pubDate>Sat, 08 Sep 2012 16:52:16 GMT</pubDate></item><item><title><![CDATA[Reply to Intermediate: how to get keyboard layout keys on Sat, 08 Sep 2012 16:51:10 GMT]]></title><description><![CDATA[<p dir="auto">I am not asking about how to build array but asking about how to determine which character is on the key</p>
]]></description><link>https://forum.qt.io/post/149900</link><guid isPermaLink="true">https://forum.qt.io/post/149900</guid><dc:creator><![CDATA[SherifOmran]]></dc:creator><pubDate>Sat, 08 Sep 2012 16:51:10 GMT</pubDate></item><item><title><![CDATA[Reply to Intermediate: how to get keyboard layout keys on Sat, 08 Sep 2012 16:49:23 GMT]]></title><description><![CDATA[<p dir="auto">Please give me an example</p>
]]></description><link>https://forum.qt.io/post/149899</link><guid isPermaLink="true">https://forum.qt.io/post/149899</guid><dc:creator><![CDATA[SherifOmran]]></dc:creator><pubDate>Sat, 08 Sep 2012 16:49:23 GMT</pubDate></item><item><title><![CDATA[Reply to Intermediate: how to get keyboard layout keys on Sat, 08 Sep 2012 13:47:52 GMT]]></title><description><![CDATA[<p dir="auto">Use QVector to describe values of keys based on their index.</p>
]]></description><link>https://forum.qt.io/post/149892</link><guid isPermaLink="true">https://forum.qt.io/post/149892</guid><dc:creator><![CDATA[leon.anavi]]></dc:creator><pubDate>Sat, 08 Sep 2012 13:47:52 GMT</pubDate></item><item><title><![CDATA[Reply to Intermediate: how to get keyboard layout keys on Sat, 08 Sep 2012 11:23:36 GMT]]></title><description><![CDATA[<p dir="auto">I am still thinking for an appropriate approach, however QMap binds value to a key. I need to read for example</p>
<p dir="auto">English Layout : Key number 6 first line is Y<br />
German Layout: Key number 6 first line is Z</p>
]]></description><link>https://forum.qt.io/post/149887</link><guid isPermaLink="true">https://forum.qt.io/post/149887</guid><dc:creator><![CDATA[SherifOmran]]></dc:creator><pubDate>Sat, 08 Sep 2012 11:23:36 GMT</pubDate></item><item><title><![CDATA[Reply to Intermediate: how to get keyboard layout keys on Sat, 08 Sep 2012 05:51:34 GMT]]></title><description><![CDATA[<p dir="auto">What is your approach for making a virtual keyboard?</p>
<p dir="auto">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.</p>
]]></description><link>https://forum.qt.io/post/149875</link><guid isPermaLink="true">https://forum.qt.io/post/149875</guid><dc:creator><![CDATA[leon.anavi]]></dc:creator><pubDate>Sat, 08 Sep 2012 05:51:34 GMT</pubDate></item></channel></rss>