Sophie

Sophie

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

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" />
<!-- qkeysequence.cpp -->
  <title>Qt 4.8: QKeySequence Class Reference</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="modules.html">Modules</a></li>
<li><a href="qtgui.html">QtGui</a></li>
<li>QKeySequence</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="#public-types">Public Types</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</a></li>
<li class="level1"><a href="#related-non-members">Related Non-Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
<li class="level2"><a href="#standard-shortcuts">Standard Shortcuts</a></li>
<li class="level2"><a href="#keyboard-layout-issues">Keyboard Layout Issues</a></li>
<li class="level2"><a href="#gnu-emacs-style-key-sequences">GNU Emacs Style Key Sequences</a></li>
</ul>
</div>
<h1 class="title">QKeySequence Class Reference</h1>
<!-- $$$QKeySequence-brief -->
<p>The QKeySequence class encapsulates a key sequence as used by shortcuts. <a href="#details">More...</a></p>
<!-- @@@QKeySequence -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QKeySequence&gt;</span></pre><ul>
<li><a href="qkeysequence-members.html">List of all members, including inherited members</a></li>
<li><a href="qkeysequence-obsolete.html">Obsolete members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#SequenceFormat-enum">SequenceFormat</a></b> { NativeText, PortableText }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#SequenceMatch-enum">SequenceMatch</a></b> { NoMatch, PartialMatch, ExactMatch }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#StandardKey-enum">StandardKey</a></b> { AddTab, Back, Bold, Close, ..., ZoomOut }</td></tr>
</table>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#QKeySequence">QKeySequence</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#QKeySequence-2">QKeySequence</a></b> ( const QString &amp; <i>key</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#QKeySequence-3">QKeySequence</a></b> ( const QString &amp; <i>key</i>, SequenceFormat <i>format</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#QKeySequence-4">QKeySequence</a></b> ( int <i>k1</i>, int <i>k2</i> = 0, int <i>k3</i> = 0, int <i>k4</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#QKeySequence-5">QKeySequence</a></b> ( const QKeySequence &amp; <i>keysequence</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#QKeySequence-6">QKeySequence</a></b> ( StandardKey <i>key</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#dtor.QKeySequence">~QKeySequence</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> uint </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#count">count</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#isEmpty">isEmpty</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> SequenceMatch </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#matches">matches</a></b> ( const QKeySequence &amp; <i>seq</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#swap">swap</a></b> ( QKeySequence &amp; <i>other</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#toString">toString</a></b> ( SequenceFormat <i>format</i> = PortableText ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#operator-QVariant">operator QVariant</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#operator-not-eq">operator!=</a></b> ( const QKeySequence &amp; <i>other</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#operator-lt">operator&lt;</a></b> ( const QKeySequence &amp; <i>other</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#operator-lt-eq">operator&lt;=</a></b> ( const QKeySequence &amp; <i>other</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QKeySequence &amp; </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#operator-eq">operator=</a></b> ( const QKeySequence &amp; <i>other</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#operator-eq-eq">operator==</a></b> ( const QKeySequence &amp; <i>other</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#operator-gt">operator&gt;</a></b> ( const QKeySequence &amp; <i>other</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#operator-gt-eq">operator&gt;=</a></b> ( const QKeySequence &amp; <i>other</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#operator-5b-5d">operator[]</a></b> ( uint <i>index</i> ) const</td></tr>
</table>
<a name="static-public-members"></a>
<h2>Static Public Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QKeySequence </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#fromString">fromString</a></b> ( const QString &amp; <i>str</i>, SequenceFormat <i>format</i> = PortableText )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;QKeySequence&gt; </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#keyBindings">keyBindings</a></b> ( StandardKey <i>key</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QKeySequence </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#mnemonic">mnemonic</a></b> ( const QString &amp; <i>text</i> )</td></tr>
</table>
<a name="related-non-members"></a>
<h2>Related Non-Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QDataStream &amp; </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#operator-lt-lt-18">operator&lt;&lt;</a></b> ( QDataStream &amp; <i>stream</i>, const QKeySequence &amp; <i>sequence</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDataStream &amp; </td><td class="memItemRight bottomAlign"><b><a href="qkeysequence.html#operator-gt-gt-11">operator&gt;&gt;</a></b> ( QDataStream &amp; <i>stream</i>, QKeySequence &amp; <i>sequence</i> )</td></tr>
</table>
<a name="details"></a>
<!-- $$$QKeySequence-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QKeySequence class encapsulates a key sequence as used by shortcuts.</p>
<p>In its most common form, a key sequence describes a combination of keys that must be used together to perform some action. Key sequences are used with <a href="qaction.html">QAction</a> objects to specify which keyboard shortcuts can be used to trigger actions.</p>
<p>Key sequences can be constructed for use as keyboard shortcuts in three different ways:</p>
<ul>
<li>For standard shortcuts, a <a href="qkeysequence.html#StandardKey-enum">standard key</a> can be used to request the platform-specific key sequence associated with each shortcut.</li>
<li>For custom shortcuts, human-readable strings such as &quot;Ctrl+X&quot; can be used, and these can be translated into the appropriate shortcuts for users of different languages. Translations are made in the &quot;<a href="qshortcut.html">QShortcut</a>&quot; context.</li>
<li>For hard-coded shortcuts, integer key codes can be specified with a combination of values defined by the <a href="qt.html#Key-enum">Qt::Key</a> and <a href="qt.html#Modifier-enum">Qt::Modifier</a> enum values. Each key code consists of a single <a href="qt.html#Key-enum">Qt::Key</a> value and zero or more modifiers, such as <a href="qt.html#Modifier-enum">Qt::SHIFT</a>, <a href="qt.html#Modifier-enum">Qt::CTRL</a>, <a href="qt.html#Modifier-enum">Qt::ALT</a> and <a href="qt.html#Modifier-enum">Qt::META</a>.</li>
</ul>
<p>For example, <b>Ctrl P</b> might be a sequence used as a shortcut for printing a document, and can be specified in any of the following ways:</p>
<pre class="cpp"> <span class="type">QKeySequence</span>(<span class="type">QKeySequence</span><span class="operator">::</span>Print);
 <span class="type">QKeySequence</span>(tr(<span class="string">&quot;Ctrl+P&quot;</span>));
 <span class="type">QKeySequence</span>(tr(<span class="string">&quot;Ctrl+p&quot;</span>));
 <span class="type">QKeySequence</span>(<span class="type"><a href="qt.html">Qt</a></span><span class="operator">::</span>CTRL <span class="operator">+</span> <span class="type"><a href="qt.html">Qt</a></span><span class="operator">::</span>Key_P);</pre>
<p>Note that, for letters, the case used in the specification string does not matter. In the above examples, the user does not need to hold down the <b>Shift</b> key to activate a shortcut specified with &quot;Ctrl+P&quot;. However, for other keys, the use of <b>Shift</b> as an unspecified extra modifier key can lead to confusion for users of an application whose keyboards have different layouts to those used by the developers. See the <a href="#keyboard-layout-issues">Keyboard Layout Issues</a> section below for more details.</p>
<p>It is preferable to use standard shortcuts where possible. When creating key sequences for non-standard shortcuts, you should use human-readable strings in preference to hard-coded integer values.</p>
<p>QKeySequence objects can be cast to a <a href="qstring.html">QString</a> to obtain a human-readable translated version of the sequence. Similarly, the <a href="qkeysequence.html#toString">toString</a>() function produces human-readable strings for use in menus. On Mac OS X, the appropriate symbols are used to describe keyboard shortcuts using special keys on the Macintosh keyboard.</p>
<p>An alternative way to specify hard-coded key codes is to use the Unicode code point of the character; for example, 'A' gives the same key sequence as <a href="qt.html#Key-enum">Qt::Key_A</a>.</p>
<p><b>Note:</b> On Mac OS X, references to &quot;Ctrl&quot;, <a href="qt.html#Modifier-enum">Qt::CTRL</a>, Qt::Control and <a href="qt.html#KeyboardModifier-enum">Qt::ControlModifier</a> correspond to the <b>Command</b> keys on the Macintosh keyboard, and references to &quot;Meta&quot;, <a href="qt.html#Modifier-enum">Qt::META</a>, Qt::Meta and <a href="qt.html#KeyboardModifier-enum">Qt::MetaModifier</a> correspond to the <b>Control</b> keys. Developers on Mac OS X can use the same shortcut descriptions across all platforms, and their applications will automatically work as expected on Mac OS X.</p>
<a name="standard-shortcuts"></a>
<h3>Standard Shortcuts</h3>
<p>QKeySequence defines many <a href="qkeysequence.html#StandardKey-enum">standard keyboard shortcuts</a> to reduce the amount of effort required when setting up actions in a typical application. The table below shows some common key sequences that are often used for these standard shortcuts by applications on four widely-used platforms. Note that on Mac OS X, the <b>Ctrl</b> value corresponds to the <b>Command</b> keys on the Macintosh keyboard, and the <b>Meta</b> value corresponds to the <b>Control</b> keys.</p>
<table class="generic">
<thead><tr class="qt-style"><th ><a href="qkeysequence.html#StandardKey-enum">StandardKey</a></th><th >Windows</th><th >Mac OS X</th><th >KDE</th><th >GNOME</th><th >S60</th></tr></thead>
<tr valign="top" class="odd"><td ><a href="qkeysequence.html#StandardKey-enum">HelpContents</a></td><td >F1</td><td >Ctrl+?</td><td >F1</td><td >F1</td><td >F2</td></tr>
<tr valign="top" class="even"><td ><a href="qkeysequence.html#StandardKey-enum">WhatsThis</a></td><td >Shift+F1</td><td >Shift+F1</td><td >Shift+F1</td><td >Shift+F1</td><td >Shift+F1</td></tr>
<tr valign="top" class="odd"><td >Open</td><td >Ctrl+O</td><td >Ctrl+O</td><td >Ctrl+O</td><td >Ctrl+O</td><td >(none)</td></tr>
<tr valign="top" class="even"><td >Close</td><td >Ctrl+F4, Ctrl+W</td><td >Ctrl+W, Ctrl+F4</td><td >Ctrl+W</td><td >Ctrl+W</td><td >(none)</td></tr>
<tr valign="top" class="odd"><td >Save</td><td >Ctrl+S</td><td >Ctrl+S</td><td >Ctrl+S</td><td >Ctrl+S</td><td >(none)</td></tr>
<tr valign="top" class="even"><td >Quit</td><td ></td><td >Ctrl+Q</td><td >Qtrl+Q</td><td >Qtrl+Q</td><td >(none)</td></tr>
<tr valign="top" class="odd"><td ><a href="qkeysequence.html#StandardKey-enum">SaveAs</a></td><td ></td><td >Ctrl+Shift+S</td><td ></td><td >Ctrl+Shift+S</td><td >(none)</td></tr>
<tr valign="top" class="even"><td >New</td><td >Ctrl+N</td><td >Ctrl+N</td><td >Ctrl+N</td><td >Ctrl+N</td><td >(none)</td></tr>
<tr valign="top" class="odd"><td >Delete</td><td >Del</td><td >Del, Meta+D</td><td >Del, Ctrl+D</td><td >Del, Ctrl+D</td><td >Del</td></tr>
<tr valign="top" class="even"><td >Cut</td><td >Ctrl+X, Shift+Del</td><td >Ctrl+X</td><td >Ctrl+X, F20, Shift+Del</td><td >Ctrl+X, F20, Shift+Del</td><td >Ctrl+X</td></tr>
<tr valign="top" class="odd"><td >Copy</td><td >Ctrl+C, Ctrl+Ins</td><td >Ctrl+C</td><td >Ctrl+C, F16, Ctrl+Ins</td><td >Ctrl+C, F16, Ctrl+Ins</td><td >Ctrl+C</td></tr>
<tr valign="top" class="even"><td >Paste</td><td >Ctrl+V, Shift+Ins</td><td >Ctrl+V</td><td >Ctrl+V, F18, Shift+Ins</td><td >Ctrl+V, F18, Shift+Ins</td><td >Ctrl+V</td></tr>
<tr valign="top" class="odd"><td >Preferences</td><td ></td><td >Ctrl+,</td><td ></td><td ></td><td >(none)</td></tr>
<tr valign="top" class="even"><td >Undo</td><td >Ctrl+Z, Alt+Backspace</td><td >Ctrl+Z</td><td >Ctrl+Z, F14</td><td >Ctrl+Z, F14</td><td >Ctrl+Z</td></tr>
<tr valign="top" class="odd"><td >Redo</td><td >Ctrl+Y, Shift+Ctrl+Z, Alt+Shift+Backspace</td><td >Ctrl+Shift+Z</td><td >Ctrl+Shift+Z</td><td >Ctrl+Shift+Z</td><td >(none)</td></tr>
<tr valign="top" class="even"><td >Back</td><td >Alt+Left, Backspace</td><td >Ctrl+[</td><td >Alt+Left</td><td >Alt+Left</td><td >(none)</td></tr>
<tr valign="top" class="odd"><td >Forward</td><td >Alt+Right, Shift+Backspace</td><td >Ctrl+]</td><td >Alt+Right</td><td >Alt+Right</td><td >(none)</td></tr>
<tr valign="top" class="even"><td >Refresh</td><td >F5</td><td >F5</td><td >F5</td><td >Ctrl+R, F5</td><td >(none)</td></tr>
<tr valign="top" class="odd"><td ><a href="qkeysequence.html#StandardKey-enum">ZoomIn</a></td><td >Ctrl+Plus</td><td >Ctrl+Plus</td><td >Ctrl+Plus</td><td >Ctrl+Plus</td><td >(none)</td></tr>
<tr valign="top" class="even"><td ><a href="qkeysequence.html#StandardKey-enum">ZoomOut</a></td><td >Ctrl+Minus</td><td >Ctrl+Minus</td><td >Ctrl+Minus</td><td >Ctrl+Minus</td><td >(none)</td></tr>
<tr valign="top" class="odd"><td >Print</td><td >Ctrl+P</td><td >Ctrl+P</td><td >Ctrl+P</td><td >Ctrl+P</td><td >(none)</td></tr>
<tr valign="top" class="even"><td ><a href="qkeysequence.html#StandardKey-enum">AddTab</a></td><td >Ctrl+T</td><td >Ctrl+T</td><td >Ctrl+Shift+N, Ctrl+T</td><td >Ctrl+T</td><td >(none)</td></tr>
<tr valign="top" class="odd"><td ><a href="qkeysequence.html#StandardKey-enum">NextChild</a></td><td >Ctrl+Tab, Forward, Ctrl+F6</td><td >Ctrl+}, Forward, Ctrl+Tab</td><td >Ctrl+Tab, Forward, Ctrl+Comma</td><td >Ctrl+Tab, Forward</td><td >(none)</td></tr>
<tr valign="top" class="even"><td ><a href="qkeysequence.html#StandardKey-enum">PreviousChild</a></td><td >Ctrl+Shift+Tab, Back, Ctrl+Shift+F6</td><td >Ctrl+{, Back, Ctrl+Shift+Tab</td><td >Ctrl+Shift+Tab, Back, Ctrl+Period</td><td >Ctrl+Shift+Tab, Back</td><td >(none)</td></tr>
<tr valign="top" class="odd"><td >Find</td><td >Ctrl+F</td><td >Ctrl+F</td><td >Ctrl+F</td><td >Ctrl+F</td><td >(none)</td></tr>
<tr valign="top" class="even"><td ><a href="qkeysequence.html#StandardKey-enum">FindNext</a></td><td >F3, Ctrl+G</td><td >Ctrl+G</td><td >F3</td><td >Ctrl+G, F3</td><td >(none)</td></tr>
<tr valign="top" class="odd"><td ><a href="qkeysequence.html#StandardKey-enum">FindPrevious</a></td><td >Shift+F3, Ctrl+Shift+G</td><td >Ctrl+Shift+G</td><td >Shift+F3</td><td >Ctrl+Shift+G, Shift+F3</td><td >(none)</td></tr>
<tr valign="top" class="even"><td >Replace</td><td >Ctrl+H</td><td >(none)</td><td >Ctrl+R</td><td >Ctrl+H</td><td >(none)</td></tr>
<tr valign="top" class="odd"><td ><a href="qkeysequence.html#StandardKey-enum">SelectAll</a></td><td >Ctrl+A</td><td >Ctrl+A</td><td >Ctrl+A</td><td >Ctrl+A</td><td >(none)</td></tr>
<tr valign="top" class="even"><td >Bold</td><td >Ctrl+B</td><td >Ctrl+B</td><td >Ctrl+B</td><td >Ctrl+B</td><td >(none)</td></tr>
<tr valign="top" class="odd"><td >Italic</td><td >Ctrl+I</td><td >Ctrl+I</td><td >Ctrl+I</td><td >Ctrl+I</td><td >(none)</td></tr>
<tr valign="top" class="even"><td >Underline</td><td >Ctrl+U</td><td >Ctrl+U</td><td >Ctrl+U</td><td >Ctrl+U</td><td >(none)</td></tr>
<tr valign="top" class="odd"><td ><a href="qkeysequence.html#StandardKey-enum">MoveToNextChar</a></td><td >Right</td><td >Right</td><td >Right</td><td >Right</td><td >Right</td></tr>
<tr valign="top" class="even"><td ><a href="qkeysequence.html#StandardKey-enum">MoveToPreviousChar</a></td><td >Left</td><td >Left</td><td >Left</td><td >Left</td><td >Left</td></tr>
<tr valign="top" class="odd"><td ><a href="qkeysequence.html#StandardKey-enum">MoveToNextWord</a></td><td >Ctrl+Right</td><td >Alt+Right</td><td >Ctrl+Right</td><td >Ctrl+Right</td><td >Ctrl+Right</td></tr>
<tr valign="top" class="even"><td ><a href="qkeysequence.html#StandardKey-enum">MoveToPreviousWord</a></td><td >Ctrl+Left</td><td >Alt+Left</td><td >Ctrl+Left</td><td >Ctrl+Left</td><td >Ctrl+Left</td></tr>
<tr valign="top" class="odd"><td ><a href="qkeysequence.html#StandardKey-enum">MoveToNextLine</a></td><td >Down</td><td >Down</td><td >Down</td><td >Down</td><td >Down</td></tr>
<tr valign="top" class="even"><td ><a href="qkeysequence.html#StandardKey-enum">MoveToPreviousLine</a></td><td >Up</td><td >Up</td><td >Up</td><td >Up</td><td >Up</td></tr>
<tr valign="top" class="odd"><td ><a href="qkeysequence.html#StandardKey-enum">MoveToNextPage</a></td><td >PgDown</td><td >PgDown, Alt+PgDown, Meta+Down, Meta+PgDown</td><td >PgDown</td><td >PgDown</td><td >PgDown</td></tr>
<tr valign="top" class="even"><td ><a href="qkeysequence.html#StandardKey-enum">MoveToPreviousPage</a></td><td >PgUp</td><td >PgUp, Alt+PgUp, Meta+Up, Meta+PgUp</td><td >PgUp</td><td >PgUp</td><td >PgUp</td></tr>
<tr valign="top" class="odd"><td ><a href="qkeysequence.html#StandardKey-enum">MoveToStartOfLine</a></td><td >Home</td><td >Ctrl+Left, Meta+Left</td><td >Home</td><td >Home</td><td >Home</td></tr>
<tr valign="top" class="even"><td ><a href="qkeysequence.html#StandardKey-enum">MoveToEndOfLine</a></td><td >End</td><td >Ctrl+Right, Meta+Right</td><td >End</td><td >End</td><td >End</td></tr>
<tr valign="top" class="odd"><td ><a href="qkeysequence.html#StandardKey-enum">MoveToStartOfBlock</a></td><td >(none)</td><td >Alt+Up, Meta+A</td><td >(none)</td><td >(none)</td><td >(none)</td></tr>
<tr valign="top" class="even"><td ><a href="qkeysequence.html#StandardKey-enum">MoveToEndOfBlock</a></td><td >(none)</td><td >Alt+Down, Meta+E</td><td >(none)</td><td >(none)</td><td >(none)</td></tr>
<tr valign="top" class="odd"><td ><a href="qkeysequence.html#StandardKey-enum">MoveToStartOfDocument</a></td><td >Ctrl+Home</td><td >Ctrl+Up, Home</td><td >Ctrl+Home</td><td >Ctrl+Home</td><td >Ctrl+Home</td></tr>
<tr valign="top" class="even"><td ><a href="qkeysequence.html#StandardKey-enum">MoveToEndOfDocument</a></td><td >Ctrl+End</td><td >Ctrl+Down, End</td><td >Ctrl+End</td><td >Ctrl+End</td><td >Ctrl+End</td></tr>
<tr valign="top" class="odd"><td ><a href="qkeysequence.html#StandardKey-enum">SelectNextChar</a></td><td >Shift+Right</td><td >Shift+Right</td><td >Shift+Right</td><td >Shift+Right</td><td >Shift+Right</td></tr>
<tr valign="top" class="even"><td ><a href="qkeysequence.html#StandardKey-enum">SelectPreviousChar</a></td><td >Shift+Left</td><td >Shift+Left</td><td >Shift+Left</td><td >Shift+Left</td><td >Shift+Left</td></tr>
<tr valign="top" class="odd"><td ><a href="qkeysequence.html#StandardKey-enum">SelectNextWord</a></td><td >Ctrl+Shift+Right</td><td >Alt+Shift+Right</td><td >Ctrl+Shift+Right</td><td >Ctrl+Shift+Right</td><td >Ctrl+Shift+Right</td></tr>
<tr valign="top" class="even"><td ><a href="qkeysequence.html#StandardKey-enum">SelectPreviousWord</a></td><td >Ctrl+Shift+Left</td><td >Alt+Shift+Left</td><td >Ctrl+Shift+Left</td><td >Ctrl+Shift+Left</td><td >Ctrl+Shift+Left</td></tr>
<tr valign="top" class="odd"><td ><a href="qkeysequence.html#StandardKey-enum">SelectNextLine</a></td><td >Shift+Down</td><td >Shift+Down</td><td >Shift+Down</td><td >Shift+Down</td><td >Shift+Down</td></tr>
<tr valign="top" class="even"><td ><a href="qkeysequence.html#StandardKey-enum">SelectPreviousLine</a></td><td >Shift+Up</td><td >Shift+Up</td><td >Shift+Up</td><td >Shift+Up</td><td >Shift+Up</td></tr>
<tr valign="top" class="odd"><td ><a href="qkeysequence.html#StandardKey-enum">SelectNextPage</a></td><td >Shift+PgDown</td><td >Shift+PgDown</td><td >Shift+PgDown</td><td >Shift+PgDown</td><td >Shift+PgDown</td></tr>
<tr valign="top" class="even"><td ><a href="qkeysequence.html#StandardKey-enum">SelectPreviousPage</a></td><td >Shift+PgUp</td><td >Shift+PgUp</td><td >Shift+PgUp</td><td >Shift+PgUp</td><td >Shift+PgUp</td></tr>
<tr valign="top" class="odd"><td ><a href="qkeysequence.html#StandardKey-enum">SelectStartOfLine</a></td><td >Shift+Home</td><td >Ctrl+Shift+Left</td><td >Shift+Home</td><td >Shift+Home</td><td >Shift+Home</td></tr>
<tr valign="top" class="even"><td ><a href="qkeysequence.html#StandardKey-enum">SelectEndOfLine</a></td><td >Shift+End</td><td >Ctrl+Shift+Right</td><td >Shift+End</td><td >Shift+End</td><td >Shift+End</td></tr>
<tr valign="top" class="odd"><td ><a href="qkeysequence.html#StandardKey-enum">SelectStartOfBlock</a></td><td >(none)</td><td >Alt+Shift+Up, Meta+Shift+A</td><td >(none)</td><td >(none)</td><td >(none)</td></tr>
<tr valign="top" class="even"><td ><a href="qkeysequence.html#StandardKey-enum">SelectEndOfBlock</a></td><td >(none)</td><td >Alt+Shift+Down, Meta+Shift+E</td><td >(none)</td><td >(none)</td><td >(none)</td></tr>
<tr valign="top" class="odd"><td ><a href="qkeysequence.html#StandardKey-enum">SelectStartOfDocument</a></td><td >Ctrl+Shift+Home</td><td >Ctrl+Shift+Up, Shift+Home</td><td >Ctrl+Shift+Home</td><td >Ctrl+Shift+Home</td><td >Ctrl+Shift+Home</td></tr>
<tr valign="top" class="even"><td ><a href="qkeysequence.html#StandardKey-enum">SelectEndOfDocument</a></td><td >Ctrl+Shift+End</td><td >Ctrl+Shift+Down, Shift+End</td><td >Ctrl+Shift+End</td><td >Ctrl+Shift+End</td><td >Ctrl+Shift+End</td></tr>
<tr valign="top" class="odd"><td ><a href="qkeysequence.html#StandardKey-enum">DeleteStartOfWord</a></td><td >Ctrl+Backspace</td><td >Alt+Backspace</td><td >Ctrl+Backspace</td><td >Ctrl+Backspace</td><td >(none)</td></tr>
<tr valign="top" class="even"><td ><a href="qkeysequence.html#StandardKey-enum">DeleteEndOfWord</a></td><td >Ctrl+Del</td><td >(none)</td><td >Ctrl+Del</td><td >Ctrl+Del</td><td >(none)</td></tr>
<tr valign="top" class="odd"><td ><a href="qkeysequence.html#StandardKey-enum">DeleteEndOfLine</a></td><td >(none)</td><td >(none)</td><td >Ctrl+K</td><td >Ctrl+K</td><td >(none)</td></tr>
<tr valign="top" class="even"><td ><a href="qkeysequence.html#StandardKey-enum">InsertParagraphSeparator</a></td><td >Enter</td><td >Enter</td><td >Enter</td><td >Enter</td><td >(none)</td></tr>
<tr valign="top" class="odd"><td ><a href="qkeysequence.html#StandardKey-enum">InsertLineSeparator</a></td><td >Shift+Enter</td><td >Meta+Enter</td><td >Shift+Enter</td><td >Shift+Enter</td><td >(none)</td></tr>
</table>
<p>Note that, since the key sequences used for the standard shortcuts differ between platforms, you still need to test your shortcuts on each platform to ensure that you do not unintentionally assign the same key sequence to many actions.</p>
<a name="keyboard-layout-issues"></a>
<h3>Keyboard Layout Issues</h3>
<p>Many key sequence specifications are chosen by developers based on the layout of certain types of keyboard, rather than choosing keys that represent the first letter of an action's name, such as <b>Ctrl S</b> (&quot;Ctrl+S&quot;) or <b>Ctrl C</b> (&quot;Ctrl+C&quot;). Additionally, because certain symbols can only be entered with the help of modifier keys on certain keyboard layouts, key sequences intended for use with one keyboard layout may map to a different key, map to no keys at all, or require an additional modifier key to be used on different keyboard layouts.</p>
<p>For example, the shortcuts, <b>Ctrl plus</b> and <b>Ctrl minus</b>, are often used as shortcuts for zoom operations in graphics applications, and these may be specified as &quot;Ctrl++&quot; and &quot;Ctrl+-&quot; respectively. However, the way these shortcuts are specified and interpreted depends on the keyboard layout. Users of Norwegian keyboards will note that the <b>+</b> and <b>-</b> keys are not adjacent on the keyboard, but will still be able to activate both shortcuts without needing to press the <b>Shift</b> key. However, users with British keyboards will need to hold down the <b>Shift</b> key to enter the <b>+</b> symbol, making the shortcut effectively the same as &quot;Ctrl+Shift+=&quot;.</p>
<p>Although some developers might resort to fully specifying all the modifiers they use on their keyboards to activate a shortcut, this will also result in unexpected behavior for users of different keyboard layouts.</p>
<p>For example, a developer using a British keyboard may decide to specify &quot;Ctrl+Shift+=&quot; as the key sequence in order to create a shortcut that coincidentally behaves in the same way as <b>Ctrl plus</b>. However, the <b>=</b> key needs to be accessed using the <b>Shift</b> key on Norwegian keyboard, making the required shortcut effectively <b>Ctrl Shift Shift =</b> (an impossible key combination).</p>
<p>As a result, both human-readable strings and hard-coded key codes can both be problematic to use when specifying a key sequence that can be used on a variety of different keyboard layouts. Only the use of <a href="qkeysequence.html#StandardKey-enum">standard shortcuts</a> guarantees that the user will be able to use the shortcuts that the developer intended.</p>
<p>Despite this, we can address this issue by ensuring that human-readable strings are used, making it possible for translations of key sequences to be made for users of different languages. This approach will be successful for users whose keyboards have the most typical layout for the language they are using.</p>
<a name="gnu-emacs-style-key-sequences"></a>
<h3>GNU Emacs Style Key Sequences</h3>
<p>Key sequences similar to those used in <a href="http://www.gnu.org/software/emacs/">GNU Emacs</a>, allowing up to four key codes, can be created by using the multiple argument constructor, or by passing a human-readable string of comma-separated key sequences.</p>
<p>For example, the key sequence, <b>Ctrl X</b> followed by <b>Ctrl C</b>, can be specified using either of the following ways:</p>
<pre class="cpp"> <span class="type">QKeySequence</span>(tr(<span class="string">&quot;Ctrl+X, Ctrl+C&quot;</span>));
 <span class="type">QKeySequence</span>(<span class="type"><a href="qt.html">Qt</a></span><span class="operator">::</span>CTRL <span class="operator">+</span> <span class="type"><a href="qt.html">Qt</a></span><span class="operator">::</span>Key_X<span class="operator">,</span> <span class="type"><a href="qt.html">Qt</a></span><span class="operator">::</span>CTRL <span class="operator">+</span> <span class="type"><a href="qt.html">Qt</a></span><span class="operator">::</span>Key_C);</pre>
<p><b>Warning:</b> A <a href="qapplication.html">QApplication</a> instance must have been constructed before a QKeySequence is created; otherwise, your application may crash.</p>
</div>
<p><b>See also </b><a href="qshortcut.html">QShortcut</a>.</p>
<!-- @@@QKeySequence -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$SequenceFormat$$$NativeText$$$PortableText -->
<h3 class="fn"><a name="SequenceFormat-enum"></a>enum QKeySequence::<span class="name">SequenceFormat</span></h3>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QKeySequence::NativeText</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The key sequence as a platform specific string. This means that it will be shown translated and on the Mac it will resemble a key sequence from the menu bar. This enum is best used when you want to display the string to the user.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::PortableText</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The key sequence is given in a &quot;portable&quot; format, suitable for reading and writing to a file. In many cases, it will look similar to the native text on Windows and X11.</td></tr>
</table>
<!-- @@@SequenceFormat -->
<!-- $$$SequenceMatch$$$NoMatch$$$PartialMatch$$$ExactMatch$$$Identical -->
<h3 class="fn"><a name="SequenceMatch-enum"></a>enum QKeySequence::<span class="name">SequenceMatch</span></h3>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QKeySequence::NoMatch</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The key sequences are different; not even partially matching.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::PartialMatch</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The key sequences match partially, but are not the same.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::ExactMatch</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">The key sequences are the same.</td></tr>
</table>
<!-- @@@SequenceMatch -->
<!-- $$$StandardKey$$$UnknownKey$$$HelpContents$$$WhatsThis$$$Open$$$Close$$$Save$$$New$$$Delete$$$Cut$$$Copy$$$Paste$$$Undo$$$Redo$$$Back$$$Forward$$$Refresh$$$ZoomIn$$$ZoomOut$$$Print$$$AddTab$$$NextChild$$$PreviousChild$$$Find$$$FindNext$$$FindPrevious$$$Replace$$$SelectAll$$$Bold$$$Italic$$$Underline$$$MoveToNextChar$$$MoveToPreviousChar$$$MoveToNextWord$$$MoveToPreviousWord$$$MoveToNextLine$$$MoveToPreviousLine$$$MoveToNextPage$$$MoveToPreviousPage$$$MoveToStartOfLine$$$MoveToEndOfLine$$$MoveToStartOfBlock$$$MoveToEndOfBlock$$$MoveToStartOfDocument$$$MoveToEndOfDocument$$$SelectNextChar$$$SelectPreviousChar$$$SelectNextWord$$$SelectPreviousWord$$$SelectNextLine$$$SelectPreviousLine$$$SelectNextPage$$$SelectPreviousPage$$$SelectStartOfLine$$$SelectEndOfLine$$$SelectStartOfBlock$$$SelectEndOfBlock$$$SelectStartOfDocument$$$SelectEndOfDocument$$$DeleteStartOfWord$$$DeleteEndOfWord$$$DeleteEndOfLine$$$InsertParagraphSeparator$$$InsertLineSeparator$$$SaveAs$$$Preferences$$$Quit -->
<h3 class="fn"><a name="StandardKey-enum"></a>enum QKeySequence::<span class="name">StandardKey</span></h3>
<p>This enum represent standard key bindings. They can be used to assign platform dependent keyboard shortcuts to a <a href="qaction.html">QAction</a>.</p>
<p>Note that the key bindings are platform dependent. The currently bound shortcuts can be queried using <a href="qkeysequence.html#keyBindings">keyBindings</a>().</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QKeySequence::AddTab</tt></td><td class="topAlign"><tt>19</tt></td><td class="topAlign">Add new tab.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::Back</tt></td><td class="topAlign"><tt>13</tt></td><td class="topAlign">Navigate back.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::Bold</tt></td><td class="topAlign"><tt>27</tt></td><td class="topAlign">Bold text.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::Close</tt></td><td class="topAlign"><tt>4</tt></td><td class="topAlign">Close document/tab.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::Copy</tt></td><td class="topAlign"><tt>9</tt></td><td class="topAlign">Copy.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::Cut</tt></td><td class="topAlign"><tt>8</tt></td><td class="topAlign">Cut.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::Delete</tt></td><td class="topAlign"><tt>7</tt></td><td class="topAlign">Delete.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::DeleteEndOfLine</tt></td><td class="topAlign"><tt>60</tt></td><td class="topAlign">Delete end of line.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::DeleteEndOfWord</tt></td><td class="topAlign"><tt>59</tt></td><td class="topAlign">Delete word from the end of the cursor.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::DeleteStartOfWord</tt></td><td class="topAlign"><tt>58</tt></td><td class="topAlign">Delete the beginning of a word up to the cursor.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::Find</tt></td><td class="topAlign"><tt>22</tt></td><td class="topAlign">Find in document.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::FindNext</tt></td><td class="topAlign"><tt>23</tt></td><td class="topAlign">Find next result.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::FindPrevious</tt></td><td class="topAlign"><tt>24</tt></td><td class="topAlign">Find previous result.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::Forward</tt></td><td class="topAlign"><tt>14</tt></td><td class="topAlign">Navigate forward.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::HelpContents</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">Open help contents.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::InsertLineSeparator</tt></td><td class="topAlign"><tt>62</tt></td><td class="topAlign">Insert a new line.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::InsertParagraphSeparator</tt></td><td class="topAlign"><tt>61</tt></td><td class="topAlign">Insert a new paragraph.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::Italic</tt></td><td class="topAlign"><tt>28</tt></td><td class="topAlign">Italic text.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::MoveToEndOfBlock</tt></td><td class="topAlign"><tt>41</tt></td><td class="topAlign">Move cursor to end of block. This shortcut is only used on the OS X.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::MoveToEndOfDocument</tt></td><td class="topAlign"><tt>43</tt></td><td class="topAlign">Move cursor to end of document.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::MoveToEndOfLine</tt></td><td class="topAlign"><tt>39</tt></td><td class="topAlign">Move cursor to end of line.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::MoveToNextChar</tt></td><td class="topAlign"><tt>30</tt></td><td class="topAlign">Move cursor to next character.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::MoveToNextLine</tt></td><td class="topAlign"><tt>34</tt></td><td class="topAlign">Move cursor to next line.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::MoveToNextPage</tt></td><td class="topAlign"><tt>36</tt></td><td class="topAlign">Move cursor to next page.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::MoveToNextWord</tt></td><td class="topAlign"><tt>32</tt></td><td class="topAlign">Move cursor to next word.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::MoveToPreviousChar</tt></td><td class="topAlign"><tt>31</tt></td><td class="topAlign">Move cursor to previous character.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::MoveToPreviousLine</tt></td><td class="topAlign"><tt>35</tt></td><td class="topAlign">Move cursor to previous line.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::MoveToPreviousPage</tt></td><td class="topAlign"><tt>37</tt></td><td class="topAlign">Move cursor to previous page.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::MoveToPreviousWord</tt></td><td class="topAlign"><tt>33</tt></td><td class="topAlign">Move cursor to previous word.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::MoveToStartOfBlock</tt></td><td class="topAlign"><tt>40</tt></td><td class="topAlign">Move cursor to start of a block. This shortcut is only used on OS X.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::MoveToStartOfDocument</tt></td><td class="topAlign"><tt>42</tt></td><td class="topAlign">Move cursor to start of document.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::MoveToStartOfLine</tt></td><td class="topAlign"><tt>38</tt></td><td class="topAlign">Move cursor to start of line.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::New</tt></td><td class="topAlign"><tt>6</tt></td><td class="topAlign">Create new document.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::NextChild</tt></td><td class="topAlign"><tt>20</tt></td><td class="topAlign">Navigate to next tab or child window.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::Open</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">Open document.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::Paste</tt></td><td class="topAlign"><tt>10</tt></td><td class="topAlign">Paste.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::Preferences</tt></td><td class="topAlign"><tt>64</tt></td><td class="topAlign">Open the preferences dialog.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::PreviousChild</tt></td><td class="topAlign"><tt>21</tt></td><td class="topAlign">Navigate to previous tab or child window.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::Print</tt></td><td class="topAlign"><tt>18</tt></td><td class="topAlign">Print document.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::Quit</tt></td><td class="topAlign"><tt>65</tt></td><td class="topAlign">Quit the application.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::Redo</tt></td><td class="topAlign"><tt>12</tt></td><td class="topAlign">Redo.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::Refresh</tt></td><td class="topAlign"><tt>15</tt></td><td class="topAlign">Refresh or reload current document.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::Replace</tt></td><td class="topAlign"><tt>25</tt></td><td class="topAlign">Find and replace.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::SaveAs</tt></td><td class="topAlign"><tt>63</tt></td><td class="topAlign">Save document after prompting the user for a file name.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::Save</tt></td><td class="topAlign"><tt>5</tt></td><td class="topAlign">Save document.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::SelectAll</tt></td><td class="topAlign"><tt>26</tt></td><td class="topAlign">Select all text.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::SelectEndOfBlock</tt></td><td class="topAlign"><tt>55</tt></td><td class="topAlign">Extend selection to the end of a text block. This shortcut is only used on OS X.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::SelectEndOfDocument</tt></td><td class="topAlign"><tt>57</tt></td><td class="topAlign">Extend selection to end of document.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::SelectEndOfLine</tt></td><td class="topAlign"><tt>53</tt></td><td class="topAlign">Extend selection to end of line.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::SelectNextChar</tt></td><td class="topAlign"><tt>44</tt></td><td class="topAlign">Extend selection to next character.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::SelectNextLine</tt></td><td class="topAlign"><tt>48</tt></td><td class="topAlign">Extend selection to next line.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::SelectNextPage</tt></td><td class="topAlign"><tt>50</tt></td><td class="topAlign">Extend selection to next page.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::SelectNextWord</tt></td><td class="topAlign"><tt>46</tt></td><td class="topAlign">Extend selection to next word.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::SelectPreviousChar</tt></td><td class="topAlign"><tt>45</tt></td><td class="topAlign">Extend selection to previous character.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::SelectPreviousLine</tt></td><td class="topAlign"><tt>49</tt></td><td class="topAlign">Extend selection to previous line.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::SelectPreviousPage</tt></td><td class="topAlign"><tt>51</tt></td><td class="topAlign">Extend selection to previous page.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::SelectPreviousWord</tt></td><td class="topAlign"><tt>47</tt></td><td class="topAlign">Extend selection to previous word.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::SelectStartOfBlock</tt></td><td class="topAlign"><tt>54</tt></td><td class="topAlign">Extend selection to the start of a text block. This shortcut is only used on OS X.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::SelectStartOfDocument</tt></td><td class="topAlign"><tt>56</tt></td><td class="topAlign">Extend selection to start of document.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::SelectStartOfLine</tt></td><td class="topAlign"><tt>52</tt></td><td class="topAlign">Extend selection to start of line.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::Underline</tt></td><td class="topAlign"><tt>29</tt></td><td class="topAlign">Underline text.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::Undo</tt></td><td class="topAlign"><tt>11</tt></td><td class="topAlign">Undo.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::UnknownKey</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">Unbound key.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::WhatsThis</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">Activate whats this.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::ZoomIn</tt></td><td class="topAlign"><tt>16</tt></td><td class="topAlign">Zoom in.</td></tr>
<tr><td class="topAlign"><tt>QKeySequence::ZoomOut</tt></td><td class="topAlign"><tt>17</tt></td><td class="topAlign">Zoom out.</td></tr>
</table>
<p>This enum was introduced or modified in Qt 4.2.</p>
<!-- @@@StandardKey -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QKeySequence[overload1]$$$QKeySequence -->
<h3 class="fn"><a name="QKeySequence"></a>QKeySequence::<span class="name">QKeySequence</span> ()</h3>
<p>Constructs an empty key sequence.</p>
<!-- @@@QKeySequence -->
<!-- $$$QKeySequence$$$QKeySequenceconstQString& -->
<h3 class="fn"><a name="QKeySequence-2"></a>QKeySequence::<span class="name">QKeySequence</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>key</i> )</h3>
<p>Creates a key sequence from the <i>key</i> string. For example &quot;Ctrl+O&quot; gives CTRL+'O'. The strings &quot;Ctrl&quot;, &quot;Shift&quot;, &quot;Alt&quot; and &quot;Meta&quot; are recognized, as well as their translated equivalents in the &quot;<a href="qshortcut.html">QShortcut</a>&quot; context (using <a href="qobject.html#tr">QObject::tr</a>()).</p>
<p>Up to four key codes may be entered by separating them with commas, e.g&#x2e; &quot;Alt+X,Ctrl+S,Q&quot;.</p>
<p><i>key</i> should be in <a href="qkeysequence.html#SequenceFormat-enum">NativeText</a> format.</p>
<p>This constructor is typically used with <a href="qobject.html#tr">tr</a>(), so that shortcut keys can be replaced in translations:</p>
<pre class="cpp"> <span class="type"><a href="qmenu.html">QMenu</a></span> <span class="operator">*</span>file <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qmenu.html">QMenu</a></span>(<span class="keyword">this</span>);
 file<span class="operator">-</span><span class="operator">&gt;</span>addAction(tr(<span class="string">&quot;&amp;Open...&quot;</span>)<span class="operator">,</span> <span class="keyword">this</span><span class="operator">,</span> SLOT(open())<span class="operator">,</span>
                   <span class="type"><a href="qkeysequence.html">QKeySequence</a></span>(tr(<span class="string">&quot;Ctrl+O&quot;</span><span class="operator">,</span> <span class="string">&quot;File|Open&quot;</span>)));</pre>
<p>Note the &quot;File|Open&quot; translator comment. It is by no means necessary, but it provides some context for the human translator.</p>
<!-- @@@QKeySequence -->
<!-- $$$QKeySequence$$$QKeySequenceconstQString&SequenceFormat -->
<h3 class="fn"><a name="QKeySequence-3"></a>QKeySequence::<span class="name">QKeySequence</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>key</i>, <span class="type"><a href="qkeysequence.html#SequenceFormat-enum">SequenceFormat</a></span> <i>format</i> )</h3>
<p>Creates a key sequence from the <i>key</i> string based on <i>format</i>.</p>
<p>This function was introduced in Qt 4.7.</p>
<!-- @@@QKeySequence -->
<!-- $$$QKeySequence$$$QKeySequenceintintintint -->
<h3 class="fn"><a name="QKeySequence-4"></a>QKeySequence::<span class="name">QKeySequence</span> ( <span class="type">int</span> <i>k1</i>, <span class="type">int</span> <i>k2</i> = 0, <span class="type">int</span> <i>k3</i> = 0, <span class="type">int</span> <i>k4</i> = 0 )</h3>
<p>Constructs a key sequence with up to 4 keys <i>k1</i>, <i>k2</i>, <i>k3</i> and <i>k4</i>.</p>
<p>The key codes are listed in <a href="qt.html#Key-enum">Qt::Key</a> and can be combined with modifiers (see <a href="qt.html#Modifier-enum">Qt::Modifier</a>) such as <a href="qt.html#Modifier-enum">Qt::SHIFT</a>, <a href="qt.html#Modifier-enum">Qt::CTRL</a>, <a href="qt.html#Modifier-enum">Qt::ALT</a>, or <a href="qt.html#Modifier-enum">Qt::META</a>.</p>
<!-- @@@QKeySequence -->
<!-- $$$QKeySequence$$$QKeySequenceconstQKeySequence& -->
<h3 class="fn"><a name="QKeySequence-5"></a>QKeySequence::<span class="name">QKeySequence</span> ( const <span class="type">QKeySequence</span> &amp; <i>keysequence</i> )</h3>
<p>Copy constructor. Makes a copy of <i>keysequence</i>.</p>
<!-- @@@QKeySequence -->
<!-- $$$QKeySequence$$$QKeySequenceStandardKey -->
<h3 class="fn"><a name="QKeySequence-6"></a>QKeySequence::<span class="name">QKeySequence</span> ( <span class="type"><a href="qkeysequence.html#StandardKey-enum">StandardKey</a></span> <i>key</i> )</h3>
<p>Constructs a <a href="qkeysequence.html">QKeySequence</a> object for the given <i>key</i>. The result will depend on the currently running platform.</p>
<p>The resulting object will be based on the first element in the list of key bindings for the <i>key</i>.</p>
<p>This function was introduced in Qt 4.2.</p>
<!-- @@@QKeySequence -->
<!-- $$$~QKeySequence[overload1]$$$~QKeySequence -->
<h3 class="fn"><a name="dtor.QKeySequence"></a>QKeySequence::<span class="name">~QKeySequence</span> ()</h3>
<p>Destroys the key sequence.</p>
<!-- @@@~QKeySequence -->
<!-- $$$count[overload1]$$$count -->
<h3 class="fn"><a name="count"></a><span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> QKeySequence::<span class="name">count</span> () const</h3>
<p>Returns the number of keys in the key sequence. The maximum is 4.</p>
<!-- @@@count -->
<!-- $$$fromString[overload1]$$$fromStringconstQString&SequenceFormat -->
<h3 class="fn"><a name="fromString"></a><span class="type">QKeySequence</span> QKeySequence::<span class="name">fromString</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>str</i>, <span class="type"><a href="qkeysequence.html#SequenceFormat-enum">SequenceFormat</a></span> <i>format</i> = PortableText )<tt> [static]</tt></h3>
<p>Return a <a href="qkeysequence.html">QKeySequence</a> from the string <i>str</i> based on <i>format</i>.</p>
<p>This function was introduced in Qt 4.1.</p>
<p><b>See also </b><a href="qkeysequence.html#toString">toString</a>().</p>
<!-- @@@fromString -->
<!-- $$$isEmpty[overload1]$$$isEmpty -->
<h3 class="fn"><a name="isEmpty"></a><span class="type">bool</span> QKeySequence::<span class="name">isEmpty</span> () const</h3>
<p>Returns true if the key sequence is empty; otherwise returns false.</p>
<!-- @@@isEmpty -->
<!-- $$$keyBindings[overload1]$$$keyBindingsStandardKey -->
<h3 class="fn"><a name="keyBindings"></a><span class="type"><a href="qlist.html">QList</a></span>&lt;<span class="type">QKeySequence</span>&gt; QKeySequence::<span class="name">keyBindings</span> ( <span class="type"><a href="qkeysequence.html#StandardKey-enum">StandardKey</a></span> <i>key</i> )<tt> [static]</tt></h3>
<p>Returns a list of key bindings for the given <i>key</i>. The result of calling this function will vary based on the target platform. The first element of the list indicates the primary shortcut for the given platform. If the result contains more than one result, these can be considered alternative shortcuts on the same platform for the given <i>key</i>.</p>
<p>This function was introduced in Qt 4.2.</p>
<!-- @@@keyBindings -->
<!-- $$$matches[overload1]$$$matchesconstQKeySequence& -->
<h3 class="fn"><a name="matches"></a><span class="type"><a href="qkeysequence.html#SequenceMatch-enum">SequenceMatch</a></span> QKeySequence::<span class="name">matches</span> ( const <span class="type">QKeySequence</span> &amp; <i>seq</i> ) const</h3>
<p>Matches the sequence with <i>seq</i>. Returns <a href="qkeysequence.html#SequenceMatch-enum">ExactMatch</a> if successful, <a href="qkeysequence.html#SequenceMatch-enum">PartialMatch</a> if <i>seq</i> matches incompletely, and <a href="qkeysequence.html#SequenceMatch-enum">NoMatch</a> if the sequences have nothing in common. Returns <a href="qkeysequence.html#SequenceMatch-enum">NoMatch</a> if <i>seq</i> is shorter.</p>
<!-- @@@matches -->
<!-- $$$mnemonic[overload1]$$$mnemonicconstQString& -->
<h3 class="fn"><a name="mnemonic"></a><span class="type">QKeySequence</span> QKeySequence::<span class="name">mnemonic</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i> )<tt> [static]</tt></h3>
<p>Returns the shortcut key sequence for the mnemonic in <i>text</i>, or an empty key sequence if no mnemonics are found.</p>
<p>For example, mnemonic(&quot;E&amp;xit&quot;) returns <tt>Qt::ALT+Qt::Key_X</tt>, mnemonic(&quot;&amp;Quit&quot;) returns <tt>ALT+Key_Q</tt>, and mnemonic(&quot;Quit&quot;) returns an empty <a href="qkeysequence.html">QKeySequence</a>.</p>
<p>We provide a <a href="accelerators.html">list of common mnemonics</a> in English. At the time of writing, Microsoft and Open Group do not appear to have issued equivalent recommendations for other languages.</p>
<p><b>See also </b><a href="qtglobal.html#qt_set_sequence_auto_mnemonic">qt_set_sequence_auto_mnemonic</a>().</p>
<!-- @@@mnemonic -->
<!-- $$$swap[overload1]$$$swapQKeySequence& -->
<h3 class="fn"><a name="swap"></a><span class="type">void</span> QKeySequence::<span class="name">swap</span> ( <span class="type">QKeySequence</span> &amp; <i>other</i> )</h3>
<p>Swaps key sequence <i>other</i> with this key sequence. This operation is very fast and never fails.</p>
<p>This function was introduced in Qt 4.8.</p>
<!-- @@@swap -->
<!-- $$$toString[overload1]$$$toStringSequenceFormat -->
<h3 class="fn"><a name="toString"></a><span class="type"><a href="qstring.html">QString</a></span> QKeySequence::<span class="name">toString</span> ( <span class="type"><a href="qkeysequence.html#SequenceFormat-enum">SequenceFormat</a></span> <i>format</i> = PortableText ) const</h3>
<p>Return a string representation of the key sequence, based on <i>format</i>.</p>
<p>For example, the value <a href="qt.html#Modifier-enum">Qt::CTRL</a>+<a href="qt.html#Key-enum">Qt::Key_O</a> results in &quot;Ctrl+O&quot;. If the key sequence has multiple key codes, each is separated by commas in the string returned, such as &quot;Alt+X, Ctrl+Y, Z&quot;. The strings, &quot;Ctrl&quot;, &quot;Shift&quot;, etc. are translated using <a href="qobject.html#tr">QObject::tr</a>() in the &quot;<a href="qshortcut.html">QShortcut</a>&quot; context.</p>
<p>If the key sequence has no keys, an empty string is returned.</p>
<p>On Mac OS X, the string returned resembles the sequence that is shown in the menu bar.</p>
<p>This function was introduced in Qt 4.1.</p>
<p><b>See also </b><a href="qkeysequence.html#fromString">fromString</a>().</p>
<!-- @@@toString -->
<!-- $$$operator QVariant[overload1]$$$operator QVariant -->
<h3 class="fn"><a name="operator-QVariant"></a>QKeySequence::<span class="name">operator QVariant</span> () const</h3>
<p>Returns the key sequence as a <a href="qvariant.html">QVariant</a></p>
<!-- @@@operator QVariant -->
<!-- $$$operator!=[overload1]$$$operator!=constQKeySequence& -->
<h3 class="fn"><a name="operator-not-eq"></a><span class="type">bool</span> QKeySequence::<span class="name">operator!=</span> ( const <span class="type">QKeySequence</span> &amp; <i>other</i> ) const</h3>
<p>Returns true if this key sequence is not equal to the <i>other</i> key sequence; otherwise returns false.</p>
<!-- @@@operator!= -->
<!-- $$$operator<[overload1]$$$operator<constQKeySequence& -->
<h3 class="fn"><a name="operator-lt"></a><span class="type">bool</span> QKeySequence::<span class="name">operator&lt;</span> ( const <span class="type">QKeySequence</span> &amp; <i>other</i> ) const</h3>
<p>Provides an arbitrary comparison of this key sequence and <i>other</i> key sequence. All that is guaranteed is that the operator returns false if both key sequences are equal and that (ks1 &lt; ks2) == !( ks2 &lt; ks1) if the key sequences are not equal.</p>
<p>This function is useful in some circumstances, for example if you want to use <a href="qkeysequence.html">QKeySequence</a> objects as keys in a <a href="qmap.html">QMap</a>.</p>
<p><b>See also </b><a href="qkeysequence.html#operator-eq-eq">operator==</a>(), <a href="qkeysequence.html#operator-not-eq">operator!=</a>(), <a href="qkeysequence.html#operator-gt">operator&gt;</a>(), <a href="qkeysequence.html#operator-lt-eq">operator&lt;=</a>(), and <a href="qkeysequence.html#operator-gt-eq">operator&gt;=</a>().</p>
<!-- @@@operator< -->
<!-- $$$operator<=[overload1]$$$operator<=constQKeySequence& -->
<h3 class="fn"><a name="operator-lt-eq"></a><span class="type">bool</span> QKeySequence::<span class="name">operator&lt;=</span> ( const <span class="type">QKeySequence</span> &amp; <i>other</i> ) const</h3>
<p>Returns true if this key sequence is smaller or equal to the <i>other</i> key sequence; otherwise returns false.</p>
<p><b>See also </b><a href="qkeysequence.html#operator-eq-eq">operator==</a>(), <a href="qkeysequence.html#operator-not-eq">operator!=</a>(), <a href="qkeysequence.html#operator-lt">operator&lt;</a>(), <a href="qkeysequence.html#operator-gt">operator&gt;</a>(), and <a href="qkeysequence.html#operator-gt-eq">operator&gt;=</a>().</p>
<!-- @@@operator<= -->
<!-- $$$operator=[overload1]$$$operator=constQKeySequence& -->
<h3 class="fn"><a name="operator-eq"></a><span class="type">QKeySequence</span> &amp; QKeySequence::<span class="name">operator=</span> ( const <span class="type">QKeySequence</span> &amp; <i>other</i> )</h3>
<p>Assignment operator. Assigns the <i>other</i> key sequence to this object.</p>
<!-- @@@operator= -->
<!-- $$$operator==[overload1]$$$operator==constQKeySequence& -->
<h3 class="fn"><a name="operator-eq-eq"></a><span class="type">bool</span> QKeySequence::<span class="name">operator==</span> ( const <span class="type">QKeySequence</span> &amp; <i>other</i> ) const</h3>
<p>Returns true if this key sequence is equal to the <i>other</i> key sequence; otherwise returns false.</p>
<!-- @@@operator== -->
<!-- $$$operator>[overload1]$$$operator>constQKeySequence& -->
<h3 class="fn"><a name="operator-gt"></a><span class="type">bool</span> QKeySequence::<span class="name">operator&gt;</span> ( const <span class="type">QKeySequence</span> &amp; <i>other</i> ) const</h3>
<p>Returns true if this key sequence is larger than the <i>other</i> key sequence; otherwise returns false.</p>
<p><b>See also </b><a href="qkeysequence.html#operator-eq-eq">operator==</a>(), <a href="qkeysequence.html#operator-not-eq">operator!=</a>(), <a href="qkeysequence.html#operator-lt">operator&lt;</a>(), <a href="qkeysequence.html#operator-lt-eq">operator&lt;=</a>(), and <a href="qkeysequence.html#operator-gt-eq">operator&gt;=</a>().</p>
<!-- @@@operator> -->
<!-- $$$operator>=[overload1]$$$operator>=constQKeySequence& -->
<h3 class="fn"><a name="operator-gt-eq"></a><span class="type">bool</span> QKeySequence::<span class="name">operator&gt;=</span> ( const <span class="type">QKeySequence</span> &amp; <i>other</i> ) const</h3>
<p>Returns true if this key sequence is larger or equal to the <i>other</i> key sequence; otherwise returns false.</p>
<p><b>See also </b><a href="qkeysequence.html#operator-eq-eq">operator==</a>(), <a href="qkeysequence.html#operator-not-eq">operator!=</a>(), <a href="qkeysequence.html#operator-lt">operator&lt;</a>(), <a href="qkeysequence.html#operator-gt">operator&gt;</a>(), and <a href="qkeysequence.html#operator-lt-eq">operator&lt;=</a>().</p>
<!-- @@@operator>= -->
<!-- $$$operator[][overload1]$$$operator[]uint -->
<h3 class="fn"><a name="operator-5b-5d"></a><span class="type">int</span> QKeySequence::<span class="name">operator[]</span> ( <span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> <i>index</i> ) const</h3>
<p>Returns a reference to the element at position <i>index</i> in the key sequence. This can only be used to read an element.</p>
<!-- @@@operator[] -->
</div>
<div class="relnonmem">
<h2>Related Non-Members</h2>
<!-- $$$operator<<$$$operator<<QDataStream&constQKeySequence& -->
<h3 class="fn"><a name="operator-lt-lt-18"></a><span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp; <span class="name">operator&lt;&lt;</span> ( <span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp; <i>stream</i>, const <span class="type">QKeySequence</span> &amp; <i>sequence</i> )</h3>
<p>Writes the key <i>sequence</i> to the <i>stream</i>.</p>
<p><b>See also </b><a href="datastreamformat.html">Format of the QDataStream operators</a>.</p>
<!-- @@@operator<< -->
<!-- $$$operator>>$$$operator>>QDataStream&QKeySequence& -->
<h3 class="fn"><a name="operator-gt-gt-11"></a><span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp; <span class="name">operator&gt;&gt;</span> ( <span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp; <i>stream</i>, <span class="type">QKeySequence</span> &amp; <i>sequence</i> )</h3>
<p>Reads a key sequence from the <i>stream</i> into the key <i>sequence</i>.</p>
<p><b>See also </b><a href="datastreamformat.html">Format of the QDataStream operators</a>.</p>
<!-- @@@operator>> -->
</div>
      </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>