<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- emb-kmap2qmap.qdoc --> <head> <title>Qt 4.6: kmap2qmap</title> <link href="classic.css" rel="stylesheet" type="text/css" /> </head> <body> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td> <td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="functions.html"><font color="#004faf">All Functions</font></a> · <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">kmap2qmap<br /><span class="subtitle"></span> </h1> <p><tt>kmap2qmap</tt> is a tool to generate keymaps for use on Embedded Linux. The source files have to be in standard Linux <tt>kmap</tt> format that is e.g. understood by the kernel's <tt>loadkeys</tt> command. This means you can use the following sources to generate <tt>qmap</tt> files:</p> <ul> <li>The <a href="http://lct.sourceforge.net/">Linux Console Tools (LCT)</a> project.</li> <li><a href="http://www.x.org/">Xorg</a> X11 keymaps can be converted to the <tt>kmap</tt> format with the <tt>ckbcomp</tt> utility.</li> <li>Since <tt>kmap</tt> files are plain text files, they can also be hand crafted.</li> </ul> <p>The generated <tt>qmap</tt> files are size optimized binary files.</p> <p><tt>kmap2qmap</tt> is a command line program, that needs at least 2 files as parameters. The last one will be the generated <tt>.qmap</tt> file, while all the others will be parsed as input <tt>.kmap</tt> files. For example:</p> <pre> kmap2qmap i386/qwertz/de-latin1-nodeadkeys.kmap include/compose.latin1.inc de-latin1-nodeadkeys.qmap</pre> <p><tt>kmap2qmap</tt> does not support all the (pseudo) symbols that the Linux kernel supports. If you are converting a standard keymap you will get a lot of warnings for things like <tt>Show_Registers</tt>, <tt>Hex_A</tt>, etc.: you can safely ignore those.</p> <p>It also doesn't support numeric symbols (e.g. <tt>keycode 1 = 4242</tt>, instead of <tt>keycode 1 = colon</tt>), since these are deprecated and can change from one kernel version to the other.</p> <p>On the other hand, <tt>kmap2qmap</tt> supports one additional, Qt specific, symbol: <tt>QtZap</tt>. The built-in US keymap has that symbol mapped tp <tt>Ctrl+Alt+Backspace</tt> and it serves as a shortcut to kill your QWS server (similiar to the X11 server).</p> <p>See also <a href="qt-embedded-charinput.html">Qt for Embedded Linux Character Input</a></p> <p /><address><hr /><div align="center"> <table width="100%" cellspacing="0" border="0"><tr class="address"> <td width="40%" align="left">Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies)</td> <td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td> <td width="40%" align="right"><div align="right">Qt 4.6.3</div></td> </tr></table></div></address></body> </html>