1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
5
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
<title>Qt 4.7: Qt 3 Support Members for QKeyEvent</title>
8
<link rel="stylesheet" type="text/css" href="style/style.css" />
9
<script src="scripts/jquery.js" type="text/javascript"></script>
10
<script src="scripts/functions.js" type="text/javascript"></script>
12
<body class="offline narrow creator">
13
<div class="header" id="qtdocheader">
16
<a href="index.html">Home</a></div>
17
<a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
18
<div id="nav-topright">
20
<li class="nav-topright-home"><a href="http://qt.nokia.com/">Qt HOME</a></li>
21
<li class="nav-topright-dev"><a href="http://developer.qt.nokia.com/">DEV</a></li>
22
<li class="nav-topright-labs"><a href="http://labs.qt.nokia.com/blogs/">LABS</a></li>
23
<li class="nav-topright-doc nav-topright-doc-active"><a href="http://doc.qt.nokia.com/">
25
<li class="nav-topright-blog"><a href="http://blog.qt.nokia.com/">BLOG</a></li>
30
<li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.7</a></span></li>
31
<li class="shortCut-topleft-active"><a href="http://doc.qt.nokia.com">ALL VERSIONS </a></li>
34
<ul class="sf-menu sf-js-enabled sf-shadow" id="narrowmenu">
35
<li><a href="#">API Lookup</a>
37
<li><a href="classes.html">Class index</a></li>
38
<li><a href="functions.html">Function index</a></li>
39
<li><a href="modules.html">Modules</a></li>
40
<li><a href="namespaces.html">Namespaces</a></li>
41
<li><a href="qtglobal.html">Global Declarations</a></li>
42
<li><a href="licensing.html">Licenses and Credits</a></li>
45
<li><a href="#">Qt Topics</a>
46
<ul id="topmenuTopic">
47
<li><a href="qt-basic-concepts.html">Programming with Qt</a></li>
48
<li><a href="qtquick.html">Device UI's & Qt Quick</a></li>
49
<li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>
50
<li><a href="developing-with-qt.html">Cross-platform and Platform-specific</a></li>
51
<li><a href="platform-specific.html">Platform-specific info</a></li>
52
<li><a href="technology-apis.html">Qt and Key Technologies</a></li>
53
<li><a href="best-practices.html">How-To's and Best Practices</a></li>
56
<li><a href="#">Examples</a>
57
<ul id="topmenuexample">
58
<li><a href="all-examples.html">Examples</a></li>
59
<li><a href="tutorials.html">Tutorials</a></li>
60
<li><a href="demos.html">Demos</a></li>
61
<li><a href="qdeclarativeexamples.html">QML Examples</a></li>
71
<div class="bd group">
73
<div class="searchlabel">
76
<form id="qtdocsearch" action="" onsubmit="return false;">
78
<input type="text" name="searchstring" id="pageType" value="" />
82
<div class="box first bottombar" id="lookup">
83
<h2 title="API Lookup"><span></span>
85
<div id="list001" class="list">
87
<li class="defaultLink"><a href="classes.html">Class index</a></li>
88
<li class="defaultLink"><a href="functions.html">Function index</a></li>
89
<li class="defaultLink"><a href="modules.html">Modules</a></li>
90
<li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
91
<li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
92
<li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
96
<div class="box bottombar" id="topics">
97
<h2 title="Qt Topics"><span></span>
99
<div id="list002" class="list">
101
<li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li>
102
<li class="defaultLink"><a href="qtquick.html">Device UI's & Qt Quick</a></li>
103
<li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li>
104
<li class="defaultLink"><a href="developing-with-qt.html">Cross-platform and Platform-specific</a></li>
105
<li class="defaultLink"><a href="platform-specific.html">Platform-specific info</a></li>
106
<li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li>
107
<li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li>
111
<div class="box" id="examples">
112
<h2 title="Examples"><span></span>
114
<div id="list003" class="list">
116
<li class="defaultLink"><a href="all-examples.html">Examples</a></li>
117
<li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
118
<li class="defaultLink"><a href="demos.html">Demos</a></li>
119
<li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
125
<div class="toolbar">
126
<div class="breadcrumb toolblock">
128
<li class="first"><a href="index.html">Home</a></li>
129
<!-- Bread crumbs goes here -->
130
<li><a href="modules.html">Modules</a></li> <li><a href="qtgui.html">QtGui</a></li>
134
<div class="toolbuttons toolblock">
136
<li id="smallA" class="t_button">A</li>
137
<li id="medA" class="t_button active">A</li>
138
<li id="bigA" class="t_button">A</li>
139
<li id="print" class="t_button"><a href="javascript:this.print();">
140
<span>Print</span></a></li>
144
<div class="content">
145
<h1 class="title">Qt 3 Support Members for QKeyEvent</h1>
146
<p><b>The following class members are part of the <a href="qt3support.html">Qt 3 support layer</a>.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
147
<p><ul><li><a href="qkeyevent.html">QKeyEvent class reference</a></li></ul></p>
148
<h2>Public Functions</h2>
149
<table class="alignedsummary">
150
<tr><td class="memItemLeft topAlign rightAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qkeyevent.html#QKeyEvent-2">QKeyEvent</a></b> ( Type <i>type</i>, int <i>key</i>, int <i>ascii</i>, int <i>modifiers</i>, const QString & <i>text</i> = QString(), bool <i>autorep</i> = false, ushort <i>count</i> = 1 )</td></tr>
151
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qkeyevent.html#ascii">ascii</a></b> () const</td></tr>
152
<tr><td class="memItemLeft topAlign rightAlign"> Qt::ButtonState </td><td class="memItemRight bottomAlign"><b><a href="qkeyevent.html#state">state</a></b> () const</td></tr>
153
<tr><td class="memItemLeft topAlign rightAlign"> Qt::ButtonState </td><td class="memItemRight bottomAlign"><b><a href="qkeyevent.html#stateAfter">stateAfter</a></b> () const</td></tr>
155
<h2>Member Function Documentation</h2>
156
<!-- $$$QKeyEvent$$$QKeyEventTypeintintintconstQString&boolushort -->
157
<h3 class="fn"><a name="QKeyEvent-2"></a>QKeyEvent::QKeyEvent ( <a href="qevent.html#Type-enum">Type</a> <i>type</i>, int <i>key</i>, int <i>ascii</i>, int <i>modifiers</i>, const <a href="qstring.html">QString</a> & <i>text</i> = QString(), bool <i>autorep</i> = false, <a href="qtglobal.html#ushort-typedef">ushort</a> <i>count</i> = 1 )</h3>
158
<p>Use one of the other constructors instead.</p>
159
<!-- @@@QKeyEvent -->
160
<!-- $$$ascii[overload1]$$$ascii -->
161
<h3 class="fn"><a name="ascii"></a>int QKeyEvent::ascii () const</h3>
162
<p>Use <a href="qkeyevent.html#text">text</a>() instead.</p>
164
<!-- $$$state[overload1]$$$state -->
165
<h3 class="fn"><a name="state"></a><a href="qt.html#ButtonState-typedef">Qt::ButtonState</a> QKeyEvent::state () const</h3>
166
<p>Use <a href="qinputevent.html#modifiers">QInputEvent::modifiers</a>() instead.</p>
168
<!-- $$$stateAfter[overload1]$$$stateAfter -->
169
<h3 class="fn"><a name="stateAfter"></a><a href="qt.html#ButtonState-typedef">Qt::ButtonState</a> QKeyEvent::stateAfter () const</h3>
170
<p>Use <a href="qkeyevent.html#modifiers">modifiers</a>() instead.</p>
171
<!-- @@@stateAfter -->
172
<div class="feedback t_button">
173
[+] Documentation Feedback</div>
183
<acronym title="Copyright">©</acronym> 2008-2010 Nokia Corporation and/or its
184
subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation
185
in Finland and/or other countries worldwide.</p>
187
All other trademarks are property of their respective owners. <a title="Privacy Policy"
188
href="http://qt.nokia.com/about/privacy-policy">Privacy Policy</a></p>
191
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.</p>
193
Alternatively, this document may be used under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU
194
Free Documentation License version 1.3</a>
195
as published by the Free Software Foundation.</p>
197
<div id="feedbackBox">
198
<div id="feedcloseX" class="feedclose t_button">X</div>
199
<form id="feedform" action="http://doc.qt.nokia.com/docFeedbck/feedback.php" method="get">
200
<p id="noteHead">Thank you for giving your feedback.</p> <p class="note">Make sure it is related to this specific page. For more general bugs and
201
requests, please use the <a href="http://bugreports.qt.nokia.com/secure/Dashboard.jspa">Qt Bug Tracker</a>.</p>
202
<p><textarea id="feedbox" name="feedText" rows="5" cols="40"></textarea></p>
203
<p><input id="feedsubmit" class="feedclose" type="submit" name="feedback" /></p>