Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 1dd17e0d683ef79b4bb6872bbf359d7f > files > 5851

qt4-doc-4.8.7-26.2.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qdeclarativeitem.cpp -->
  <title>Qt 4.8: QML Keys Element</title>
  <link rel="stylesheet" type="text/css" href="style/style.css" />
  <script src="scripts/jquery.js" type="text/javascript"></script>
  <script src="scripts/functions.js" type="text/javascript"></script>
  <link rel="stylesheet" type="text/css" href="style/superfish.css" />
  <link rel="stylesheet" type="text/css" href="style/narrow.css" />
  <!--[if IE]>
<meta name="MSSmartTagsPreventParsing" content="true">
<meta http-equiv="imagetoolbar" content="no">
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie6.css">
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie7.css">
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/style_ie8.css">
<![endif]-->

<script src="scripts/superfish.js" type="text/javascript"></script>
<script src="scripts/narrow.js" type="text/javascript"></script>

</head>
<body class="" onload="CheckEmptyAndLoadList();">
 <div class="header" id="qtdocheader">
    <div class="content"> 
    <div id="nav-logo">
      <a href="index.html">Home</a></div>
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
    <div id="narrowsearch"></div>
    <div id="nav-topright">
      <ul>
        <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li>
        <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li>
        <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/">
          DOC</a></li>
        <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li>
      </ul>
    </div>
    <div id="shortCut">
      <ul>
        <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li>
        <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS        </a></li>
      </ul>
     </div>
 <ul class="sf-menu" id="narrowmenu"> 
             <li><a href="#">API Lookup</a> 
                 <ul> 
                     <li><a href="classes.html">Class index</a></li> 
           <li><a href="functions.html">Function index</a></li> 
           <li><a href="modules.html">Modules</a></li> 
           <li><a href="namespaces.html">Namespaces</a></li> 
           <li><a href="qtglobal.html">Global Declarations</a></li> 
           <li><a href="qdeclarativeelements.html">QML elements</a></li> 
             </ul> 
             </li> 
             <li><a href="#">Qt Topics</a> 
                 <ul> 
                        <li><a href="qt-basic-concepts.html">Programming with Qt</a></li>  
                        <li><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li>  
                        <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>  
                        <li><a href="supported-platforms.html">Supported Platforms</a></li>  
                        <li><a href="technology-apis.html">Qt and Key Technologies</a></li>  
                        <li><a href="best-practices.html">How-To's and Best Practices</a></li>  
              </ul> 
                 </li> 
                 <li><a href="#">Examples</a> 
                     <ul> 
                       <li><a href="all-examples.html">Examples</a></li> 
                       <li><a href="tutorials.html">Tutorials</a></li> 
                       <li><a href="demos.html">Demos</a></li> 
                       <li><a href="qdeclarativeexamples.html">QML Examples</a></li> 
                </ul> 
                     </li> 
                 </ul> 
    </div>
  </div>
  <div class="wrapper">
    <div class="hd">
      <span></span>
    </div>
    <div class="bd group">
      <div class="sidebar">
        <div class="searchlabel">
          Search index:</div>
        <div class="search" id="sidebarsearch">
          <form id="qtdocsearch" action="" onsubmit="return false;">
            <fieldset>
              <input type="text" name="searchstring" id="pageType" value="" />
 <div id="resultdialog"> 
 <a href="#" id="resultclose">Close</a> 
 <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> 
 <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span>&nbsp;results:</p> 
 <ul id="resultlist" class="all"> 
 </ul> 
 </div> 
            </fieldset>
          </form>
        </div>
        <div class="box first bottombar" id="lookup">
          <h2 title="API Lookup"><span></span>
            API Lookup</h2>
          <div  id="list001" class="list">
          <ul id="ul001" >
              <li class="defaultLink"><a href="classes.html">Class index</a></li>
              <li class="defaultLink"><a href="functions.html">Function index</a></li>
              <li class="defaultLink"><a href="modules.html">Modules</a></li>
              <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
              <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
              <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
            </ul> 
          </div>
        </div>
        <div class="box bottombar" id="topics">
          <h2 title="Qt Topics"><span></span>
            Qt Topics</h2>
          <div id="list002" class="list">
            <ul id="ul002" >
               <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> 
               <li class="defaultLink"><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li> 
               <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> 
               <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li>  
               <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> 
               <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> 
            </ul>  
          </div>
        </div>
        <div class="box" id="examples">
          <h2 title="Examples"><span></span>
            Examples</h2>
          <div id="list003" class="list">
        <ul id="ul003">
              <li class="defaultLink"><a href="all-examples.html">Examples</a></li>
              <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
              <li class="defaultLink"><a href="demos.html">Demos</a></li>
              <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
            </ul> 
          </div>
        </div>
      </div>
      <div class="wrap">
        <div class="toolbar">
          <div class="breadcrumb toolblock">
            <ul>
              <li class="first"><a href="index.html">Home</a></li>
              <!--  Breadcrumbs go here -->
<li><a href="qdeclarativeelements.html">QML Elements</a></li>
<li>QML Keys Element</li>
            </ul>
          </div>
          <div class="toolbuttons toolblock">
            <ul>
              <li id="smallA" class="t_button">A</li>
              <li id="medA" class="t_button active">A</li>
              <li id="bigA" class="t_button">A</li>
              <li id="print" class="t_button"><a href="javascript:this.print();">
                <span>Print</span></a></li>
            </ul>
        </div>
        </div>
        <div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#signal-handlers">Signal Handlers</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
<li class="level2"><a href="#example-usage">Example Usage</a></li>
<li class="level2"><a href="#key-handling-priorities">Key Handling Priorities</a></li>
</ul>
</div>
<h1 class="title">QML Keys Element</h1>
<span class="subtitle"></span>
<!-- $$$Keys-brief -->
<p>The Keys attached property provides key handling to Items. <a href="#details">More...</a></p>
<!-- @@@Keys -->
<p>This element was introduced in Qt 4.7.</p>
<ul>
<li><a href="qml-keys-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2>Properties</h2>
<ul>
<li class="fn"><b><b><a href="qml-keys.html#enabled-prop">enabled</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-keys.html#forwardTo-prop">forwardTo</a></b></b> : list&lt;Object&gt;</li>
<li class="fn"><b><b><a href="qml-keys.html#priority-prop">priority</a></b></b> : enumeration</li>
</ul>
<a name="signal-handlers"></a>
<h2>Signal Handlers</h2>
<ul>
<li class="fn"><b><b><a href="qml-keys.html#onAsteriskPressed-signal">onAsteriskPressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onBackPressed-signal">onBackPressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onBacktabPressed-signal">onBacktabPressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onCallPressed-signal">onCallPressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onCancelPressed-signal">onCancelPressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onContext1Pressed-signal">onContext1Pressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onContext2Pressed-signal">onContext2Pressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onContext3Pressed-signal">onContext3Pressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onContext4Pressed-signal">onContext4Pressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onDeletePressed-signal">onDeletePressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onDigit0Pressed-signal">onDigit0Pressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onDigit1Pressed-signal">onDigit1Pressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onDigit2Pressed-signal">onDigit2Pressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onDigit3Pressed-signal">onDigit3Pressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onDigit4Pressed-signal">onDigit4Pressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onDigit5Pressed-signal">onDigit5Pressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onDigit6Pressed-signal">onDigit6Pressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onDigit7Pressed-signal">onDigit7Pressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onDigit8Pressed-signal">onDigit8Pressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onDigit9Pressed-signal">onDigit9Pressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onDownPressed-signal">onDownPressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onEnterPressed-signal">onEnterPressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onEscapePressed-signal">onEscapePressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onFlipPressed-signal">onFlipPressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onHangupPressed-signal">onHangupPressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onLeftPressed-signal">onLeftPressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onMenuPressed-signal">onMenuPressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onNoPressed-signal">onNoPressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onPressed-signal">onPressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onReleased-signal">onReleased</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onReturnPressed-signal">onReturnPressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onRightPressed-signal">onRightPressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onSelectPressed-signal">onSelectPressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onSpacePressed-signal">onSpacePressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onTabPressed-signal">onTabPressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onUpPressed-signal">onUpPressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onVolumeDownPressed-signal">onVolumeDownPressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onVolumeUpPressed-signal">onVolumeUpPressed</a></b></b></li>
<li class="fn"><b><b><a href="qml-keys.html#onYesPressed-signal">onYesPressed</a></b></b></li>
</ul>
<!-- $$$Keys-description -->
<a name="details"></a>
<h2>Detailed Description</h2>
<p>All visual primitives support key handling via the Keys attached property. Keys can be handled via the <a href="qml-keys.html#onPressed-signal">onPressed</a> and <a href="qml-keys.html#onReleased-signal">onReleased</a> signal properties.</p>
<p>The signal properties have a <a href="qml-keyevent.html">KeyEvent</a> parameter, named <i>event</i> which contains details of the event. If a key is handled <i>event.accepted</i> should be set to true to prevent the event from propagating up the item hierarchy.</p>
<a name="example-usage"></a>
<h2>Example Usage</h2>
<p>The following example shows how the general <a href="qml-keys.html#onPressed-signal">onPressed</a> handler can be used to test for a certain key; in this case, the left cursor key:</p>
<pre class="qml"> <span class="type"><a href="qml-item.html">Item</a></span> {
     <span class="name">anchors</span>.fill: <span class="name">parent</span>
     <span class="name">focus</span>: <span class="number">true</span>
     <span class="name">Keys</span>.onPressed: {
         <span class="keyword">if</span> (<span class="name">event</span>.<span class="name">key</span> <span class="operator">==</span> <span class="name">Qt</span>.<span class="name">Key_Left</span>) {
             <span class="name">console</span>.<span class="name">log</span>(<span class="string">&quot;move left&quot;</span>);
             <span class="name">event</span>.<span class="name">accepted</span> <span class="operator">=</span> <span class="number">true</span>;
         }
     }
 }</pre>
<p>Some keys may alternatively be handled via specific signal properties, for example <i>onSelectPressed</i>. These handlers automatically set <i>event.accepted</i> to true.</p>
<pre class="qml"> <span class="type"><a href="qml-item.html">Item</a></span> {
     <span class="name">anchors</span>.fill: <span class="name">parent</span>
     <span class="name">focus</span>: <span class="number">true</span>
     <span class="name">Keys</span>.onLeftPressed: <span class="name">console</span>.<span class="name">log</span>(<span class="string">&quot;move left&quot;</span>)
 }</pre>
<p>See <a href="qt.html#Key-enum">Qt.Key</a> for the list of keyboard codes.</p>
<a name="key-handling-priorities"></a>
<h2>Key Handling Priorities</h2>
<p>The Keys attached property can be configured to handle key events before or after the item it is attached to. This makes it possible to intercept events in order to override an item's default behavior, or act as a fallback for keys not handled by the item.</p>
<p>If <a href="qml-keys.html#priority-prop">priority</a> is Keys.BeforeItem (default) the order of key event processing is:</p>
<ol class="1">
<li>Items specified in <tt>forwardTo</tt></li>
<li>specific key handlers, e.g&#x2e; <a href="qml-keys.html#onReturnPressed-signal">onReturnPressed</a></li>
<li>onKeyPress, onKeyRelease handlers</li>
<li>Item specific key handling, e.g&#x2e; <a href="qml-textinput.html">TextInput</a> key handling</li>
<li>parent item</li>
</ol>
<p>If priority is Keys.AfterItem the order of key event processing is:</p>
<ol class="1">
<li>Item specific key handling, e.g&#x2e; <a href="qml-textinput.html">TextInput</a> key handling</li>
<li>Items specified in <tt>forwardTo</tt></li>
<li>specific key handlers, e.g&#x2e; <a href="qml-keys.html#onReturnPressed-signal">onReturnPressed</a></li>
<li>onKeyPress, onKeyRelease handlers</li>
<li>parent item</li>
</ol>
<p>If the event is accepted during any of the above steps, key propagation stops.</p>
<p><b>See also </b><a href="qml-keyevent.html">KeyEvent</a> and <a href="qml-keynavigation.html">KeyNavigation attached property</a>.</p>
<!-- @@@Keys -->
<h2>Property Documentation</h2>
<!-- $$$enabled -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="enabled-prop"></a><span class="name">enabled</span> : <span class="type"><a href="qml-bool.html">bool</a></span></p></td></tr></table></div><div class="qmldoc"><p>This flags enables key handling if true (default); otherwise no key handlers will be called.</p>
</div></div><!-- @@@enabled -->
<br/>
<!-- $$$forwardTo -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="forwardTo-prop"></a><span class="qmlreadonly">read-only</span><span class="name">forwardTo</span> : <span class="type"><a href="qml-list.html">list</a></span>&lt;<span class="type">Object</span>&gt;</p></td></tr></table></div><div class="qmldoc"><p>This property provides a way to forward key presses, key releases, and keyboard input coming from input methods to other items. This can be useful when you want one item to handle some keys (e.g&#x2e; the up and down arrow keys), and another item to handle other keys (e.g&#x2e; the left and right arrow keys). Once an item that has been forwarded keys accepts the event it is no longer forwarded to items later in the list.</p>
<p>This example forwards key events to two lists:</p>
<pre class="qml"> <span class="type"><a href="qml-item.html">Item</a></span> {
     <span class="type"><a href="qml-listview.html">ListView</a></span> {
         <span class="name">id</span>: <span class="name">list1</span>
         <span class="comment">// ...</span>
     }
     <span class="type"><a href="qml-listview.html">ListView</a></span> {
         <span class="name">id</span>: <span class="name">list2</span>
         <span class="comment">// ...</span>
     }
     <span class="name">Keys</span>.forwardTo: [<span class="name">list1</span>, <span class="name">list2</span>]
     <span class="name">focus</span>: <span class="number">true</span>
 }</pre>
</div></div><!-- @@@forwardTo -->
<br/>
<!-- $$$priority -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="priority-prop"></a><span class="name">priority</span> : <span class="type"><a href="qml-enumeration.html">enumeration</a></span></p></td></tr></table></div><div class="qmldoc"><p>This property determines whether the keys are processed before or after the attached item's own key handling.</p>
<ul>
<li>Keys.BeforeItem (default) - process the key events before normal item key processing. If the event is accepted it will not be passed on to the item.</li>
<li>Keys.AfterItem - process the key events after normal item key handling. If the item accepts the key event it will not be handled by the Keys attached property handler.</li>
</ul>
</div></div><!-- @@@priority -->
<br/>
<h2>Signal Handler Documentation</h2>
<!-- $$$onAsteriskPressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onAsteriskPressed-signal"></a>Keys::<span class="name">onAsteriskPressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the Asterisk '*' has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onAsteriskPressed -->
<br/>
<!-- $$$onBackPressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onBackPressed-signal"></a>Keys::<span class="name">onBackPressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the Back key has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onBackPressed -->
<br/>
<!-- $$$onBacktabPressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onBacktabPressed-signal"></a>Keys::<span class="name">onBacktabPressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the Shift+Tab key combination (Backtab) has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onBacktabPressed -->
<br/>
<!-- $$$onCallPressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onCallPressed-signal"></a>Keys::<span class="name">onCallPressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the Call key has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onCallPressed -->
<br/>
<!-- $$$onCancelPressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onCancelPressed-signal"></a>Keys::<span class="name">onCancelPressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the Cancel key has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onCancelPressed -->
<br/>
<!-- $$$onContext1Pressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onContext1Pressed-signal"></a>Keys::<span class="name">onContext1Pressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the Context1 key has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onContext1Pressed -->
<br/>
<!-- $$$onContext2Pressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onContext2Pressed-signal"></a>Keys::<span class="name">onContext2Pressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the Context2 key has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onContext2Pressed -->
<br/>
<!-- $$$onContext3Pressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onContext3Pressed-signal"></a>Keys::<span class="name">onContext3Pressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the Context3 key has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onContext3Pressed -->
<br/>
<!-- $$$onContext4Pressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onContext4Pressed-signal"></a>Keys::<span class="name">onContext4Pressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the Context4 key has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onContext4Pressed -->
<br/>
<!-- $$$onDeletePressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onDeletePressed-signal"></a>Keys::<span class="name">onDeletePressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the Delete key has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onDeletePressed -->
<br/>
<!-- $$$onDigit0Pressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onDigit0Pressed-signal"></a>Keys::<span class="name">onDigit0Pressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the digit '0' has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onDigit0Pressed -->
<br/>
<!-- $$$onDigit1Pressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onDigit1Pressed-signal"></a>Keys::<span class="name">onDigit1Pressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the digit '1' has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onDigit1Pressed -->
<br/>
<!-- $$$onDigit2Pressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onDigit2Pressed-signal"></a>Keys::<span class="name">onDigit2Pressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the digit '2' has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onDigit2Pressed -->
<br/>
<!-- $$$onDigit3Pressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onDigit3Pressed-signal"></a>Keys::<span class="name">onDigit3Pressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the digit '3' has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onDigit3Pressed -->
<br/>
<!-- $$$onDigit4Pressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onDigit4Pressed-signal"></a>Keys::<span class="name">onDigit4Pressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the digit '4' has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onDigit4Pressed -->
<br/>
<!-- $$$onDigit5Pressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onDigit5Pressed-signal"></a>Keys::<span class="name">onDigit5Pressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the digit '5' has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onDigit5Pressed -->
<br/>
<!-- $$$onDigit6Pressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onDigit6Pressed-signal"></a>Keys::<span class="name">onDigit6Pressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the digit '6' has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onDigit6Pressed -->
<br/>
<!-- $$$onDigit7Pressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onDigit7Pressed-signal"></a>Keys::<span class="name">onDigit7Pressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the digit '7' has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onDigit7Pressed -->
<br/>
<!-- $$$onDigit8Pressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onDigit8Pressed-signal"></a>Keys::<span class="name">onDigit8Pressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the digit '8' has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onDigit8Pressed -->
<br/>
<!-- $$$onDigit9Pressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onDigit9Pressed-signal"></a>Keys::<span class="name">onDigit9Pressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the digit '9' has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onDigit9Pressed -->
<br/>
<!-- $$$onDownPressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onDownPressed-signal"></a>Keys::<span class="name">onDownPressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the Down arrow has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onDownPressed -->
<br/>
<!-- $$$onEnterPressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onEnterPressed-signal"></a>Keys::<span class="name">onEnterPressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the Enter key has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onEnterPressed -->
<br/>
<!-- $$$onEscapePressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onEscapePressed-signal"></a>Keys::<span class="name">onEscapePressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the Escape key has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onEscapePressed -->
<br/>
<!-- $$$onFlipPressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onFlipPressed-signal"></a>Keys::<span class="name">onFlipPressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the Flip key has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onFlipPressed -->
<br/>
<!-- $$$onHangupPressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onHangupPressed-signal"></a>Keys::<span class="name">onHangupPressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the Hangup key has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onHangupPressed -->
<br/>
<!-- $$$onLeftPressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onLeftPressed-signal"></a>Keys::<span class="name">onLeftPressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the Left arrow has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onLeftPressed -->
<br/>
<!-- $$$onMenuPressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onMenuPressed-signal"></a>Keys::<span class="name">onMenuPressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the Menu key has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onMenuPressed -->
<br/>
<!-- $$$onNoPressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onNoPressed-signal"></a>Keys::<span class="name">onNoPressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the No key has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onNoPressed -->
<br/>
<!-- $$$onPressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onPressed-signal"></a>Keys::<span class="name">onPressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when a key has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onPressed -->
<br/>
<!-- $$$onReleased -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onReleased-signal"></a>Keys::<span class="name">onReleased</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when a key has been released. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onReleased -->
<br/>
<!-- $$$onReturnPressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onReturnPressed-signal"></a>Keys::<span class="name">onReturnPressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the Return key has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onReturnPressed -->
<br/>
<!-- $$$onRightPressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onRightPressed-signal"></a>Keys::<span class="name">onRightPressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the Right arrow has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onRightPressed -->
<br/>
<!-- $$$onSelectPressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onSelectPressed-signal"></a>Keys::<span class="name">onSelectPressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the Select key has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onSelectPressed -->
<br/>
<!-- $$$onSpacePressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onSpacePressed-signal"></a>Keys::<span class="name">onSpacePressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the Space key has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onSpacePressed -->
<br/>
<!-- $$$onTabPressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onTabPressed-signal"></a>Keys::<span class="name">onTabPressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the Tab key has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onTabPressed -->
<br/>
<!-- $$$onUpPressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onUpPressed-signal"></a>Keys::<span class="name">onUpPressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the Up arrow has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onUpPressed -->
<br/>
<!-- $$$onVolumeDownPressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onVolumeDownPressed-signal"></a>Keys::<span class="name">onVolumeDownPressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the VolumeDown key has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onVolumeDownPressed -->
<br/>
<!-- $$$onVolumeUpPressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onVolumeUpPressed-signal"></a>Keys::<span class="name">onVolumeUpPressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the VolumeUp key has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onVolumeUpPressed -->
<br/>
<!-- $$$onYesPressed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onYesPressed-signal"></a>Keys::<span class="name">onYesPressed</span> ( <span class="type"><a href="qml-keyevent.html">KeyEvent</a></span> <i>event</i> )</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the Yes key has been pressed. The <i>event</i> parameter provides information about the event.</p>
</div></div><!-- @@@onYesPressed -->
<br/>
      </div>
    </div>
    </div> 
    <div class="ft">
      <span></span>
    </div>
  </div> 
  <div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2015 The Qt Company Ltd.
      Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      Qt and respective logos are trademarks of The Qt Company Ltd 
      in Finland and/or other countries worldwide. All other trademarks are property
      of their respective owners. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
  </div>

  <script src="scripts/functions.js" type="text/javascript"></script>
</body>
</html>