Sophie

Sophie

distrib > * > 2009.0 > i586 > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 599

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_09) on Tue Aug 07 17:01:30 CEST 2007 -->
<TITLE>
QKeySequence
</TITLE>

<META NAME="keywords" CONTENT="com.trolltech.qt.gui.QKeySequence class">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="QKeySequence";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QKeyEvent.html" title="class in com.trolltech.qt.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QKeySequence.SequenceFormat.html" title="enum in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/gui/QKeySequence.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QKeySequence.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.trolltech.qt.gui</FONT>
<BR>
Class QKeySequence</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">com.trolltech.qt.QSignalEmitter</A>
      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">com.trolltech.qt.QtJambiObject</A>
          <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.trolltech.qt.gui.QKeySequence</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A>, java.lang.Comparable</DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>QKeySequence</B><DT>extends <A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A><DT>implements java.lang.Comparable</DL>
</PRE>

<P>
<p>The <a href="QKeySequence.html#QKeySequence(java.lang.String)"><tt>QKeySequence</tt></a> 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"><tt>QAction</tt></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 standard key</tt> 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"><tt>QShortcut</tt></a>&quot; context.</li>
<li>For hard-coded shortcuts, integer key codes can be specified with a combination of values defined by the Qt::Key and Qt::Modifier enum values. Each key code consists of a single Qt::Key value and zero or more modifiers, such as Qt::SHIFT, Qt::CTRL, Qt::ALT and Qt::META.</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>    QKeySequence(QKeySequence::Print}
    QKeySequence(tr(&quot;Ctrl+P&quot;))
    QKeySequence(tr(&quot;Ctrl+p&quot;))
    QKeySequence(Qt::CTRL + Qt::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="QKeySequence.html#keyboard-layout-issues">Keyboard Layout Issues</tt></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><a href="QKeySequence.html#QKeySequence(java.lang.String)"><tt>QKeySequence</tt></a> objects can be cast to a <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a> to obtain a human-readable translated version of the sequence. Similarly, the <a href="QKeySequence.html#toString(com.trolltech.qt.gui.QKeySequence.SequenceFormat)"><tt>toString</tt></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 Qt::Key_A.</p>
<p><b>Note:</b> On Mac OS X, references to &quot;Ctrl&quot;, Qt::CTRL, Qt::Control and Qt::ControlModifier correspond to the <b>Command</b> keys on the Macintosh keyboard, and references to &quot;Meta&quot;, Qt::META, Qt::Meta and Qt::MetaModifier 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><a href="QKeySequence.html#QKeySequence(java.lang.String)"><tt>QKeySequence</tt></a> defines many <a href="QKeySequence.html#StandardKey-enum"><tt>StandardKey</tt></a> standard keyboard shortcuts 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>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th><a href="QKeySequence.html#StandardKey-enum"><tt>StandardKey</tt></a></th><th>Windows</th><th>Mac OS X</th><th>KDE</th><th>GNOME</th></tr></thead>
<tr valign="top" class="odd"><td><a href="QKeySequence.html#StandardKey-enum"><tt>HelpContents</tt></a></td><td>F1</td><td>Ctrl+?</td><td>F1</td><td>F1</td></tr>
<tr valign="top" class="even"><td><a href="QKeySequence.html#StandardKey-enum"><tt>WhatsThis</tt></a></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></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></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></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></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></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></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></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></tr>
<tr valign="top" class="odd"><td>Undo</td><td>Ctrl+Z, Alt+Backspace</td><td>Ctrl+Z</td><td>Ctrl+Z, F14</td><td>Ctrl+Z, F14</td></tr>
<tr valign="top" class="even"><td>Redo</td><td>Ctrl+Y, Shift+Ctrl+Z, Alt+Shift+Backspace</td><td>Ctrl+Shift+Z, Ctrl+Y</td><td>Ctrl+Shift+Z</td><td>Ctrl+Shift+Z</td></tr>
<tr valign="top" class="odd"><td>Back</td><td>Alt+Left, Backspace</td><td>Ctrl+[</td><td>Alt+Left</td><td>Alt+Left</td></tr>
<tr valign="top" class="even"><td>Forward</td><td>Alt+Right, Shift+Backspace</td><td>Ctrl+]</td><td>Alt+Right</td><td>Alt+Right</td></tr>
<tr valign="top" class="odd"><td>Refresh</td><td>F5</td><td>F5</td><td>F5</td><td>Ctrl+R, F5</td></tr>
<tr valign="top" class="even"><td><a href="QKeySequence.html#StandardKey-enum"><tt>ZoomIn</tt></a></td><td>Ctrl+Plus</td><td>Ctrl+Plus</td><td>Ctrl+Plus</td><td>Ctrl+Plus</td></tr>
<tr valign="top" class="odd"><td><a href="QKeySequence.html#StandardKey-enum"><tt>ZoomOut</tt></a></td><td>Ctrl+Minus</td><td>Ctrl+Minus</td><td>Ctrl+Minus</td><td>Ctrl+Minus</td></tr>
<tr valign="top" class="even"><td>Print</td><td>Ctrl+P</td><td>Ctrl+P</td><td>Ctrl+P</td><td>Ctrl+P</td></tr>
<tr valign="top" class="odd"><td><a href="QKeySequence.html#StandardKey-enum"><tt>AddTab</tt></a></td><td>Ctrl+T</td><td>Ctrl+T</td><td>Ctrl+Shift+N, Ctrl+T</td><td>Ctrl+T</td></tr>
<tr valign="top" class="even"><td><a href="QKeySequence.html#StandardKey-enum"><tt>NextChild</tt></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></tr>
<tr valign="top" class="odd"><td><a href="QKeySequence.html#StandardKey-enum"><tt>PreviousChild</tt></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></tr>
<tr valign="top" class="even"><td>Find</td><td>Ctrl+F</td><td>Ctrl+F</td><td>Ctrl+F</td><td>Ctrl+F</td></tr>
<tr valign="top" class="odd"><td><a href="QKeySequence.html#StandardKey-enum"><tt>FindNext</tt></a></td><td>F3, Ctrl+G</td><td>Ctrl+G</td><td>F3</td><td>Ctrl+G, F3</td></tr>
<tr valign="top" class="even"><td><a href="QKeySequence.html#StandardKey-enum"><tt>FindPrevious</tt></a></td><td>Shift+F3, Ctrl+Shift+G</td><td>Ctrl+Shift+G</td><td>Shift+F3</td><td>Ctrl+Shift+G, F3</td></tr>
<tr valign="top" class="odd"><td>Replace</td><td>Ctrl+H</td><td>(none)</td><td>Ctrl+R</td><td>Ctrl+H</td></tr>
<tr valign="top" class="even"><td><a href="QKeySequence.html#StandardKey-enum"><tt>SelectAll</tt></a></td><td>Ctrl+A</td><td>Ctrl+A</td><td>Ctrl+A</td><td>Ctrl+A</td></tr>
<tr valign="top" class="odd"><td>Bold</td><td>Ctrl+B</td><td>Ctrl+B</td><td>Ctrl+B</td><td>Ctrl+B</td></tr>
<tr valign="top" class="even"><td>Italic</td><td>Ctrl+I</td><td>Ctrl+I</td><td>Ctrl+I</td><td>Ctrl+I</td></tr>
<tr valign="top" class="odd"><td>Underline</td><td>Ctrl+U</td><td>Ctrl+U</td><td>Ctrl+U</td><td>Ctrl+U</td></tr>
<tr valign="top" class="even"><td><a href="QKeySequence.html#StandardKey-enum"><tt>MoveToNextChar</tt></a></td><td>Right</td><td>Right</td><td>Right</td><td>Right</td></tr>
<tr valign="top" class="odd"><td><a href="QKeySequence.html#StandardKey-enum"><tt>MoveToPreviousChar</tt></a></td><td>Left</td><td>Left</td><td>Left</td><td>Left</td></tr>
<tr valign="top" class="even"><td><a href="QKeySequence.html#StandardKey-enum"><tt>MoveToNextWord</tt></a></td><td>Ctrl+Right</td><td>Alt+Right</td><td>Ctrl+Right</td><td>Ctrl+Right</td></tr>
<tr valign="top" class="odd"><td><a href="QKeySequence.html#StandardKey-enum"><tt>MoveToPreviousWord</tt></a></td><td>Ctrl+Left</td><td>Alt+Left</td><td>Ctrl+Left</td><td>Ctrl+Left</td></tr>
<tr valign="top" class="even"><td><a href="QKeySequence.html#StandardKey-enum"><tt>MoveToNextLine</tt></a></td><td>Down</td><td>Down</td><td>Down</td><td>Down</td></tr>
<tr valign="top" class="odd"><td><a href="QKeySequence.html#StandardKey-enum"><tt>MoveToPreviousLine</tt></a></td><td>Up</td><td>Up</td><td>Up</td><td>Up</td></tr>
<tr valign="top" class="even"><td><a href="QKeySequence.html#StandardKey-enum"><tt>MoveToNextPage</tt></a></td><td>PgDown</td><td>PgDown, Alt+PgDown, Meta+Down, Meta+PgDown</td><td>PgDown</td><td>PgDown</td></tr>
<tr valign="top" class="odd"><td><a href="QKeySequence.html#StandardKey-enum"><tt>MoveToPreviousPage</tt></a></td><td>PgUp</td><td>PgUp, Alt+PgUp, Meta+Up, Meta+PgUp</td><td>PgUp</td><td>PgUp</td></tr>
<tr valign="top" class="even"><td><a href="QKeySequence.html#StandardKey-enum"><tt>MoveToStartOfLine</tt></a></td><td>Home</td><td>Ctrl+Left, Meta+Left</td><td>Home</td><td>Home</td></tr>
<tr valign="top" class="odd"><td><a href="QKeySequence.html#StandardKey-enum"><tt>MoveToEndOfLine</tt></a></td><td>End</td><td>Ctrl+Right, Meta+Right</td><td>End</td><td>End</td></tr>
<tr valign="top" class="even"><td><a href="QKeySequence.html#StandardKey-enum"><tt>MoveToStartOfBlock</tt></a></td><td>(none)</td><td>Alt+Up, Meta+A</td><td>(none)</td><td>(none)</td></tr>
<tr valign="top" class="odd"><td><a href="QKeySequence.html#StandardKey-enum"><tt>MoveToEndOfBlock</tt></a></td><td>(none)</td><td>Alt+Down, Meta+E</td><td>(none)</td><td>(none)</td></tr>
<tr valign="top" class="even"><td><a href="QKeySequence.html#StandardKey-enum"><tt>MoveToStartOfDocument</tt></a></td><td>Ctrl+Home</td><td>Ctrl+Up, Home</td><td>Ctrl+Home</td><td>Ctrl+Home</td></tr>
<tr valign="top" class="odd"><td><a href="QKeySequence.html#StandardKey-enum"><tt>MoveToEndOfDocument</tt></a></td><td>Ctrl+End</td><td>Ctrl+Down, End</td><td>Ctrl+End</td><td>Ctrl+End</td></tr>
<tr valign="top" class="even"><td><a href="QKeySequence.html#StandardKey-enum"><tt>SelectNextChar</tt></a></td><td>Shift+Right</td><td>Shift+Right</td><td>Shift+Right</td><td>Shift+Right</td></tr>
<tr valign="top" class="odd"><td><a href="QKeySequence.html#StandardKey-enum"><tt>SelectPreviousChar</tt></a></td><td>Shift+Left</td><td>Shift+Left</td><td>Shift+Left</td><td>Shift?left</td></tr>
<tr valign="top" class="even"><td><a href="QKeySequence.html#StandardKey-enum"><tt>SelectNextWord</tt></a></td><td>Ctrl+Shift+Right</td><td>Alt+Shift+Right</td><td>Ctrl+Shift+Right</td><td>Ctrl+Shift+Right</td></tr>
<tr valign="top" class="odd"><td><a href="QKeySequence.html#StandardKey-enum"><tt>SelectPreviousWord</tt></a></td><td>Ctrl+Shift+Left</td><td>Alt+Shift+Left</td><td>Ctrl+Shift+Left</td><td>Ctrl+Shift+Left</td></tr>
<tr valign="top" class="even"><td><a href="QKeySequence.html#StandardKey-enum"><tt>SelectNextLine</tt></a></td><td>Shift+Down</td><td>Shift+Down</td><td>Shift+Down</td><td>Shift+Down</td></tr>
<tr valign="top" class="odd"><td><a href="QKeySequence.html#StandardKey-enum"><tt>SelectPreviousLine</tt></a></td><td>Shift+Up</td><td>Shift+Up</td><td>Shift+Up</td><td>Shift+Up</td></tr>
<tr valign="top" class="even"><td><a href="QKeySequence.html#StandardKey-enum"><tt>SelectNextPage</tt></a></td><td>Shift+PgDown</td><td>Shift+PgDown</td><td>Shift+PgDown</td><td>Shift+PgDown</td></tr>
<tr valign="top" class="odd"><td><a href="QKeySequence.html#StandardKey-enum"><tt>SelectPreviousPage</tt></a></td><td>Shift+PgUp</td><td>Shift+PgUp</td><td>Shift+PgUp</td><td>Shift+PgUp</td></tr>
<tr valign="top" class="even"><td><a href="QKeySequence.html#StandardKey-enum"><tt>SelectStartOfLine</tt></a></td><td>Shift+Home</td><td>Ctrl+Shift+Left</td><td>Shift+Home</td><td>Shift+Home</td></tr>
<tr valign="top" class="odd"><td><a href="QKeySequence.html#StandardKey-enum"><tt>SelectEndOfLine</tt></a></td><td>Shift+End</td><td>Ctrl+Shift+Right</td><td>Shift+End</td><td>Shift+End</td></tr>
<tr valign="top" class="even"><td><a href="QKeySequence.html#StandardKey-enum"><tt>SelectStartOfBlock</tt></a></td><td>(none)</td><td>Alt+Shift+Up</td><td>(none)</td><td>(none)</td></tr>
<tr valign="top" class="odd"><td><a href="QKeySequence.html#StandardKey-enum"><tt>SelectEndOfBlock</tt></a></td><td>(none)</td><td>Alt+Shift+Down</td><td>(none)</td><td>(none)</td></tr>
<tr valign="top" class="even"><td><a href="QKeySequence.html#StandardKey-enum"><tt>SelectStartOfDocument</tt></a></td><td>Ctrl+Shift+Home</td><td>Ctrl+Shift+Up, Shift+Home</td><td>Ctrl+Shift+Home</td><td>Ctrl+Shift+Home</td></tr>
<tr valign="top" class="odd"><td><a href="QKeySequence.html#StandardKey-enum"><tt>SelectEndOfDocument</tt></a></td><td>Ctrl+Shift+End</td><td>Ctrl+Shift+Down, Shift+End</td><td>Ctrl+Shift+End</td><td>Ctrl+Shift+End</td></tr>
<tr valign="top" class="even"><td><a href="QKeySequence.html#StandardKey-enum"><tt>DeleteStartOfWord</tt></a></td><td>Ctrl+Backspace</td><td>Alt+Backspace</td><td>Ctrl+Backspace</td><td>Ctrl+Backspace</td></tr>
<tr valign="top" class="odd"><td><a href="QKeySequence.html#StandardKey-enum"><tt>DeleteEndOfWord</tt></a></td><td>Ctrl+Del</td><td>(none)</td><td>Ctrl+Del</td><td>Ctrl+Del</td></tr>
<tr valign="top" class="even"><td><a href="QKeySequence.html#StandardKey-enum"><tt>DeleteEndOfLine</tt></a></td><td>(none)</td><td>(none)</td><td>Ctrl+K</td><td>Ctrl+K</td></tr>
</table></p>
<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</tt></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 GNU Emacs</tt>, 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>    QKeySequence(tr(&quot;Ctrl+X, Ctrl+C&quot;))
    QKeySequence(Qt::CTRL + Qt::Key_X, Qt::CTRL + Qt::Key_C)</pre>
<P>

<P>
<DL>
<DT><B>See Also:</B><DD><a href="QShortcut.html"><tt>QShortcut</tt></a></DL>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->

<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.SequenceFormat.html" title="enum in com.trolltech.qt.gui">QKeySequence.SequenceFormat</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Press link for info on QKeySequence.SequenceFormat</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.SequenceMatch.html" title="enum in com.trolltech.qt.gui">QKeySequence.SequenceMatch</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Press link for info on QKeySequence.SequenceMatch</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.StandardKey.html" title="enum in com.trolltech.qt.gui">QKeySequence.StandardKey</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum represent standard key bindings.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="type parameter in QSignalEmitter.Signal1">A</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">B</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">C</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="class in com.trolltech.qt">QSignalEmitter.Signal4</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">D</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="class in com.trolltech.qt">QSignalEmitter.Signal5</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">E</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="class in com.trolltech.qt">QSignalEmitter.Signal6</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">F</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="class in com.trolltech.qt">QSignalEmitter.Signal7</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">G</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="class in com.trolltech.qt">QSignalEmitter.Signal8</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">H</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="class in com.trolltech.qt">QSignalEmitter.Signal9</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">H</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">I</A>&gt;</CODE></TD>
</TR>
</TABLE>
&nbsp;

<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html#QKeySequence()">QKeySequence</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an empty key sequence.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html#QKeySequence(int)">QKeySequence</A></B>(int&nbsp;k1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QKeySequence.html#QKeySequence(java.lang.String)"><tt>QKeySequence</tt></a>(<tt>k1</tt>, 0, 0, 0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html#QKeySequence(int, int)">QKeySequence</A></B>(int&nbsp;k1,
             int&nbsp;k2)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QKeySequence.html#QKeySequence(java.lang.String)"><tt>QKeySequence</tt></a>(<tt>k1</tt>, <tt>k2</tt>, 0, 0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html#QKeySequence(int, int, int)">QKeySequence</A></B>(int&nbsp;k1,
             int&nbsp;k2,
             int&nbsp;k3)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QKeySequence.html#QKeySequence(java.lang.String)"><tt>QKeySequence</tt></a>(<tt>k1</tt>, <tt>k2</tt>, <tt>k3</tt>, 0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html#QKeySequence(int, int, int, int)">QKeySequence</A></B>(int&nbsp;k1,
             int&nbsp;k2,
             int&nbsp;k3,
             int&nbsp;k4)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a key sequence with up to 4 keys <tt>k1</tt>, <tt>k2</tt>, <tt>k3</tt> and <tt>k4</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html#QKeySequence(com.trolltech.qt.gui.QKeySequence.StandardKey)">QKeySequence</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QKeySequence.StandardKey.html" title="enum in com.trolltech.qt.gui">QKeySequence.StandardKey</A>&nbsp;key)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a <a href="QKeySequence.html#QKeySequence(java.lang.String)"><tt>QKeySequence</tt></a> object for the given <tt>key</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html#QKeySequence(com.trolltech.qt.gui.QKeySequence)">QKeySequence</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html" title="class in com.trolltech.qt.gui">QKeySequence</A>&nbsp;ks)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copy constructor.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html#QKeySequence(java.lang.String)">QKeySequence</A></B>(java.lang.String&nbsp;key)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a key sequence from the <tt>key</tt> string.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html#at(int)">at</A></B>(int&nbsp;i)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the key at index <tt>i</tt> in this key sequence.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html#compareTo(java.lang.Object)">compareTo</A></B>(java.lang.Object&nbsp;other)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html#count()">count</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of keys in the key sequence.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object&nbsp;other)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html" title="class in com.trolltech.qt.gui">QKeySequence</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html#fromNativePointer(com.trolltech.qt.QNativePointer)">fromNativePointer</A></B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function returns the QKeySequence instance pointed to by nativePointer</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html" title="class in com.trolltech.qt.gui">QKeySequence</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html#fromString(java.lang.String)">fromString</A></B>(java.lang.String&nbsp;str)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QKeySequence.html#fromString(java.lang.String, com.trolltech.qt.gui.QKeySequence.SequenceFormat)"><tt>fromString</tt></a>(<tt>str</tt>, PortableText).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html" title="class in com.trolltech.qt.gui">QKeySequence</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html#fromString(java.lang.String, com.trolltech.qt.gui.QKeySequence.SequenceFormat)">fromString</A></B>(java.lang.String&nbsp;str,
           <A HREF="../../../../com/trolltech/qt/gui/QKeySequence.SequenceFormat.html" title="enum in com.trolltech.qt.gui">QKeySequence.SequenceFormat</A>&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a <a href="QKeySequence.html#QKeySequence(java.lang.String)"><tt>QKeySequence</tt></a> from the string <tt>str</tt> based on <tt>format</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html#isEmpty()">isEmpty</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the key sequence is empty; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.util.List&lt;<A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html" title="class in com.trolltech.qt.gui">QKeySequence</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html#keyBindings(com.trolltech.qt.gui.QKeySequence.StandardKey)">keyBindings</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QKeySequence.StandardKey.html" title="enum in com.trolltech.qt.gui">QKeySequence.StandardKey</A>&nbsp;key)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a list of key bindings for the given <tt>key</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QKeySequence.SequenceMatch.html" title="enum in com.trolltech.qt.gui">QKeySequence.SequenceMatch</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html#matches(com.trolltech.qt.gui.QKeySequence)">matches</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html" title="class in com.trolltech.qt.gui">QKeySequence</A>&nbsp;seq)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Matches the sequence with <tt>seq</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html" title="class in com.trolltech.qt.gui">QKeySequence</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html#mnemonic(java.lang.String)">mnemonic</A></B>(java.lang.String&nbsp;text)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the shortcut key sequence for the mnemonic in <tt>text</tt>, or an empty key sequence if no mnemonics are found.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html#nativePointerArray(com.trolltech.qt.gui.QKeySequence[])">nativePointerArray</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html" title="class in com.trolltech.qt.gui">QKeySequence</A>[]&nbsp;array)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function returns a QNativePointer that is pointing to the specified QKeySequence array.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html#readFrom(com.trolltech.qt.core.QDataStream)">readFrom</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A>&nbsp;out)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads a QKeySequence from out.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html#toInt()">toInt</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;For backward compatibility.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html#toString()">toString</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QKeySequence.html#toString(com.trolltech.qt.gui.QKeySequence.SequenceFormat)"><tt>toString</tt></a>(PortableText).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html#toString(com.trolltech.qt.gui.QKeySequence.SequenceFormat)">toString</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QKeySequence.SequenceFormat.html" title="enum in com.trolltech.qt.gui">QKeySequence.SequenceFormat</A>&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a string representation of the key sequence, based on <tt>format</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html#writeTo(com.trolltech.qt.core.QDataStream)">writeTo</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A>&nbsp;in)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes thisQKeySequence to in.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiObject"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiObject.html#dispose()">dispose</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#disposed()">disposed</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#finalize()">finalize</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#reassignNativeResources(com.trolltech.qt.QtJambiObject, java.lang.Class)">reassignNativeResources</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String, int)">tr</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#blockSignals(boolean)">blockSignals</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect()">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect(java.lang.Object)">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalsBlocked()">signalsBlocked</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalSender()">signalSender</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#thread()">thread</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiInterface"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from interface com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#disableGarbageCollection()">disableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativeId()">nativeId</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativePointer()">nativePointer</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#reenableGarbageCollection()">reenableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#setJavaOwnership()">setJavaOwnership</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="QKeySequence(int, int, int)"><!-- --></A><H3>
QKeySequence</H3>
<PRE>
public <B>QKeySequence</B>(int&nbsp;k1,
                    int&nbsp;k2,
                    int&nbsp;k3)</PRE>
<DL>
<DD><p>Equivalent to <a href="QKeySequence.html#QKeySequence(java.lang.String)"><tt>QKeySequence</tt></a>(<tt>k1</tt>, <tt>k2</tt>, <tt>k3</tt>, 0).
<P>
</DL>
<HR>

<A NAME="QKeySequence(int, int)"><!-- --></A><H3>
QKeySequence</H3>
<PRE>
public <B>QKeySequence</B>(int&nbsp;k1,
                    int&nbsp;k2)</PRE>
<DL>
<DD><p>Equivalent to <a href="QKeySequence.html#QKeySequence(java.lang.String)"><tt>QKeySequence</tt></a>(<tt>k1</tt>, <tt>k2</tt>, 0, 0).
<P>
</DL>
<HR>

<A NAME="QKeySequence(int)"><!-- --></A><H3>
QKeySequence</H3>
<PRE>
public <B>QKeySequence</B>(int&nbsp;k1)</PRE>
<DL>
<DD><p>Equivalent to <a href="QKeySequence.html#QKeySequence(java.lang.String)"><tt>QKeySequence</tt></a>(<tt>k1</tt>, 0, 0, 0).
<P>
</DL>
<HR>

<A NAME="QKeySequence(int, int, int, int)"><!-- --></A><H3>
QKeySequence</H3>
<PRE>
public <B>QKeySequence</B>(int&nbsp;k1,
                    int&nbsp;k2,
                    int&nbsp;k3,
                    int&nbsp;k4)</PRE>
<DL>
<DD><p>Constructs a key sequence with up to 4 keys <tt>k1</tt>, <tt>k2</tt>, <tt>k3</tt> and <tt>k4</tt>.</p>
<p>The key codes are listed in Qt::Key and can be combined with modifiers (see Qt::Modifier) such as Qt::SHIFT, Qt::CTRL, Qt::ALT, or Qt::META.</p>
<P>
</DL>
<HR>

<A NAME="QKeySequence(com.trolltech.qt.gui.QKeySequence.StandardKey)"><!-- --></A><H3>
QKeySequence</H3>
<PRE>
public <B>QKeySequence</B>(<A HREF="../../../../com/trolltech/qt/gui/QKeySequence.StandardKey.html" title="enum in com.trolltech.qt.gui">QKeySequence.StandardKey</A>&nbsp;key)</PRE>
<DL>
<DD><p>Constructs a <a href="QKeySequence.html#QKeySequence(java.lang.String)"><tt>QKeySequence</tt></a> object for the given <tt>key</tt>. 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 <tt>key</tt>.</p>
<P>
</DL>
<HR>

<A NAME="QKeySequence(com.trolltech.qt.gui.QKeySequence)"><!-- --></A><H3>
QKeySequence</H3>
<PRE>
public <B>QKeySequence</B>(<A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html" title="class in com.trolltech.qt.gui">QKeySequence</A>&nbsp;ks)</PRE>
<DL>
<DD><p>Copy constructor. Makes a copy of <tt>ks</tt>.</p>
<P>
</DL>
<HR>

<A NAME="QKeySequence()"><!-- --></A><H3>
QKeySequence</H3>
<PRE>
public <B>QKeySequence</B>()</PRE>
<DL>
<DD><p>Constructs an empty key sequence.</p>
<P>
</DL>
<HR>

<A NAME="QKeySequence(java.lang.String)"><!-- --></A><H3>
QKeySequence</H3>
<PRE>
public <B>QKeySequence</B>(java.lang.String&nbsp;key)</PRE>
<DL>
<DD><p>Creates a key sequence from the <tt>key</tt> 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"><tt>QShortcut</tt></a>&quot; context (using QObject::tr()).</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>This constructor is typically used with tr</tt>(), so that shortcut keys can be replaced in translations:</p>
<pre>    QMenu *file = new QMenu(this);
    file-&gt;addAction(tr(&quot;&amp;Open...&quot;), this, SLOT(open()),
                      QKeySequence(tr(&quot;Ctrl+O&quot;, &quot;File|Open&quot;)));</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>
<P>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="count()"><!-- --></A><H3>
count</H3>
<PRE>
public final int <B>count</B>()</PRE>
<DL>
<DD><p>Returns the number of keys in the key sequence. The maximum is 4.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="isEmpty()"><!-- --></A><H3>
isEmpty</H3>
<PRE>
public final boolean <B>isEmpty</B>()</PRE>
<DL>
<DD><p>Returns true if the key sequence is empty; otherwise returns false.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="matches(com.trolltech.qt.gui.QKeySequence)"><!-- --></A><H3>
matches</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QKeySequence.SequenceMatch.html" title="enum in com.trolltech.qt.gui">QKeySequence.SequenceMatch</A> <B>matches</B>(<A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html" title="class in com.trolltech.qt.gui">QKeySequence</A>&nbsp;seq)</PRE>
<DL>
<DD><p>Matches the sequence with <tt>seq</tt>. Returns <a href="QKeySequence.html#SequenceMatch-enum"><tt>ExactMatch</tt></a> if successful, <a href="QKeySequence.html#SequenceMatch-enum"><tt>PartialMatch</tt></a> if <tt>seq</tt> matches incompletely, and <a href="QKeySequence.html#SequenceMatch-enum"><tt>NoMatch</tt></a> if the sequences have nothing in common. Returns <a href="QKeySequence.html#SequenceMatch-enum"><tt>NoMatch</tt></a> if <tt>seq</tt> is shorter.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="writeTo(com.trolltech.qt.core.QDataStream)"><!-- --></A><H3>
writeTo</H3>
<PRE>
public final void <B>writeTo</B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A>&nbsp;in)</PRE>
<DL>
<DD>Writes thisQKeySequence to in.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="readFrom(com.trolltech.qt.core.QDataStream)"><!-- --></A><H3>
readFrom</H3>
<PRE>
public final void <B>readFrom</B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A>&nbsp;out)</PRE>
<DL>
<DD>Reads a QKeySequence from out.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public final java.lang.String <B>toString</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QKeySequence.html#toString(com.trolltech.qt.gui.QKeySequence.SequenceFormat)"><tt>toString</tt></a>(PortableText).
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="toString(com.trolltech.qt.gui.QKeySequence.SequenceFormat)"><!-- --></A><H3>
toString</H3>
<PRE>
public final java.lang.String <B>toString</B>(<A HREF="../../../../com/trolltech/qt/gui/QKeySequence.SequenceFormat.html" title="enum in com.trolltech.qt.gui">QKeySequence.SequenceFormat</A>&nbsp;format)</PRE>
<DL>
<DD><p>Return a string representation of the key sequence, based on <tt>format</tt>.</p>
<p>For example, the value Qt::CTRL+Qt::Key_O 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 QObject::tr() in the &quot;<a href="QShortcut.html"><tt>QShortcut</tt></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>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QKeySequence.html#fromString(java.lang.String, com.trolltech.qt.gui.QKeySequence.SequenceFormat)"><tt>fromString</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="fromString(java.lang.String)"><!-- --></A><H3>
fromString</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html" title="class in com.trolltech.qt.gui">QKeySequence</A> <B>fromString</B>(java.lang.String&nbsp;str)</PRE>
<DL>
<DD><p>Equivalent to <a href="QKeySequence.html#fromString(java.lang.String, com.trolltech.qt.gui.QKeySequence.SequenceFormat)"><tt>fromString</tt></a>(<tt>str</tt>, PortableText).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="fromString(java.lang.String, com.trolltech.qt.gui.QKeySequence.SequenceFormat)"><!-- --></A><H3>
fromString</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html" title="class in com.trolltech.qt.gui">QKeySequence</A> <B>fromString</B>(java.lang.String&nbsp;str,
                                      <A HREF="../../../../com/trolltech/qt/gui/QKeySequence.SequenceFormat.html" title="enum in com.trolltech.qt.gui">QKeySequence.SequenceFormat</A>&nbsp;format)</PRE>
<DL>
<DD><p>Return a <a href="QKeySequence.html#QKeySequence(java.lang.String)"><tt>QKeySequence</tt></a> from the string <tt>str</tt> based on <tt>format</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QKeySequence.html#toString(com.trolltech.qt.gui.QKeySequence.SequenceFormat)"><tt>toString</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="keyBindings(com.trolltech.qt.gui.QKeySequence.StandardKey)"><!-- --></A><H3>
keyBindings</H3>
<PRE>
public static java.util.List&lt;<A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html" title="class in com.trolltech.qt.gui">QKeySequence</A>&gt; <B>keyBindings</B>(<A HREF="../../../../com/trolltech/qt/gui/QKeySequence.StandardKey.html" title="enum in com.trolltech.qt.gui">QKeySequence.StandardKey</A>&nbsp;key)</PRE>
<DL>
<DD><p>Returns a list of key bindings for the given <tt>key</tt>. 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 <tt>key</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="mnemonic(java.lang.String)"><!-- --></A><H3>
mnemonic</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html" title="class in com.trolltech.qt.gui">QKeySequence</A> <B>mnemonic</B>(java.lang.String&nbsp;text)</PRE>
<DL>
<DD><p>Returns the shortcut key sequence for the mnemonic in <tt>text</tt>, 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(java.lang.String)"><tt>QKeySequence</tt></a>.</p>
<p>We provide a <a href="%2E%2E/accelerators.html">list of common mnemonics</tt></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>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="fromNativePointer(com.trolltech.qt.QNativePointer)"><!-- --></A><H3>
fromNativePointer</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html" title="class in com.trolltech.qt.gui">QKeySequence</A> <B>fromNativePointer</B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</PRE>
<DL>
<DD>This function returns the QKeySequence instance pointed to by nativePointer
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nativePointer</CODE> - the QNativePointer of which object should be returned.</DL>
</DD>
</DL>
<HR>

<A NAME="nativePointerArray(com.trolltech.qt.gui.QKeySequence[])"><!-- --></A><H3>
nativePointerArray</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> <B>nativePointerArray</B>(<A HREF="../../../../com/trolltech/qt/gui/QKeySequence.html" title="class in com.trolltech.qt.gui">QKeySequence</A>[]&nbsp;array)</PRE>
<DL>
<DD>This function returns a QNativePointer that is pointing to the specified QKeySequence array.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>array</CODE> - the array that the returned pointer will point to.
<DT><B>Returns:</B><DD>a QNativePointer that is pointing to the specified array.</DL>
</DD>
</DL>
<HR>

<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
equals</H3>
<PRE>
public boolean <B>equals</B>(java.lang.Object&nbsp;other)</PRE>
<DL>
<DD>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="compareTo(java.lang.Object)"><!-- --></A><H3>
compareTo</H3>
<PRE>
public int <B>compareTo</B>(java.lang.Object&nbsp;other)</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>compareTo</CODE> in interface <CODE>java.lang.Comparable</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="toInt()"><!-- --></A><H3>
toInt</H3>
<PRE>
public final int <B>toInt</B>()</PRE>
<DL>
<DD>For backward compatibility. returns the first keycode
as integer. If the key sequence is empty, 0 is returned.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="at(int)"><!-- --></A><H3>
at</H3>
<PRE>
public final int <B>at</B>(int&nbsp;i)</PRE>
<DL>
<DD>Returns the key at index <tt>i</tt> in this key sequence.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QKeyEvent.html" title="class in com.trolltech.qt.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QKeySequence.SequenceFormat.html" title="enum in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/gui/QKeySequence.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QKeySequence.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>