File: qtabletevent.html

package info (click to toggle)
qt4-x11 4%3A4.8.2%2Bdfsg-11
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 701,696 kB
  • sloc: cpp: 2,686,179; ansic: 375,485; python: 25,859; sh: 19,349; xml: 17,091; perl: 14,765; yacc: 5,383; asm: 5,038; makefile: 1,259; lex: 555; ruby: 526; objc: 347; cs: 112; pascal: 112; php: 54; sed: 34
file content (255 lines) | stat: -rw-r--r-- 25,400 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
<?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" />
<!-- qevent.cpp -->
  <title>Qt 4.8: QTabletEvent Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="content"> 
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
  </div>
  <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>QTabletEvent</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="#details">Detailed Description</a></li>
<li class="level2"><a href="#notes-for-x11-users">Notes for X11 Users</a></li>
</ul>
</div>
<h1 class="title">QTabletEvent Class Reference</h1>
<!-- $$$QTabletEvent-brief -->
<p>The QTabletEvent class contains parameters that describe a Tablet event. <a href="#details">More...</a></p>
<!-- @@@QTabletEvent -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QTabletEvent&gt;</span></pre><p><b>Inherits: </b><a href="qinputevent.html">QInputEvent</a>.</p>
<ul>
<li><a href="qtabletevent-members.html">List of all members, including inherited 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="qtabletevent.html#PointerType-enum">PointerType</a></b> { UnknownPointer, Pen, Cursor, Eraser }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qtabletevent.html#TabletDevice-enum">TabletDevice</a></b> { NoDevice, Puck, Stylus, Airbrush, FourDMouse, RotationStylus }</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="qtabletevent.html#QTabletEvent">QTabletEvent</a></b> ( Type <i>type</i>, const QPoint &amp; <i>pos</i>, const QPoint &amp; <i>globalPos</i>, const QPointF &amp; <i>hiResGlobalPos</i>, int <i>device</i>, int <i>pointerType</i>, qreal <i>pressure</i>, int <i>xTilt</i>, int <i>yTilt</i>, qreal <i>tangentialPressure</i>, qreal <i>rotation</i>, int <i>z</i>, Qt::KeyboardModifiers <i>keyState</i>, qint64 <i>uniqueID</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> TabletDevice </td><td class="memItemRight bottomAlign"><b><a href="qtabletevent.html#device">device</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const QPoint &amp; </td><td class="memItemRight bottomAlign"><b><a href="qtabletevent.html#globalPos">globalPos</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtabletevent.html#globalX">globalX</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtabletevent.html#globalY">globalY</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const QPointF &amp; </td><td class="memItemRight bottomAlign"><b><a href="qtabletevent.html#hiResGlobalPos">hiResGlobalPos</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qtabletevent.html#hiResGlobalX">hiResGlobalX</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qtabletevent.html#hiResGlobalY">hiResGlobalY</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> PointerType </td><td class="memItemRight bottomAlign"><b><a href="qtabletevent.html#pointerType">pointerType</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const QPoint &amp; </td><td class="memItemRight bottomAlign"><b><a href="qtabletevent.html#pos">pos</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qtabletevent.html#pressure">pressure</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qtabletevent.html#rotation">rotation</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qtabletevent.html#tangentialPressure">tangentialPressure</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qint64 </td><td class="memItemRight bottomAlign"><b><a href="qtabletevent.html#uniqueId">uniqueId</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtabletevent.html#x">x</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtabletevent.html#xTilt">xTilt</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtabletevent.html#y">y</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtabletevent.html#yTilt">yTilt</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtabletevent.html#z">z</a></b> () const</td></tr>
</table>
<ul>
<li class="fn">1 public function inherited from <a href="qinputevent.html#public-functions">QInputEvent</a></li>
<li class="fn">6 public functions inherited from <a href="qevent.html#public-functions">QEvent</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 property inherited from <a href="qevent.html#properties">QEvent</a></li>
<li class="fn">1 static public member inherited from <a href="qevent.html#static-public-members">QEvent</a></li>
</ul>
<a name="details"></a>
<!-- $$$QTabletEvent-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QTabletEvent class contains parameters that describe a Tablet event.</p>
<p>Tablet Events are generated from a Wacom tablet. Most of the time you will want to deal with events from the tablet as if they were events from a mouse; for example, you would retrieve the cursor position with <a href="qtabletevent.html#x">x</a>(), <a href="qtabletevent.html#y">y</a>(), <a href="qtabletevent.html#pos">pos</a>(), <a href="qtabletevent.html#globalX">globalX</a>(), <a href="qtabletevent.html#globalY">globalY</a>(), and <a href="qtabletevent.html#globalPos">globalPos</a>(). In some situations you may wish to retrieve the extra information provided by the tablet device driver; for example, you might want to do subpixeling with higher resolution coordinates or you may want to adjust color brightness based on pressure. QTabletEvent allows you to read the <a href="qtabletevent.html#pressure">pressure</a>(), the <a href="qtabletevent.html#xTilt">xTilt</a>(), and <a href="qtabletevent.html#yTilt">yTilt</a>(), as well as the type of device being used with <a href="qtabletevent.html#device">device</a>() (see <a href="qtabletevent.html#TabletDevice-enum">TabletDevice</a>). It can also give you the minimum and maximum values for each device's pressure and high resolution coordinates.</p>
<p>A tablet event contains a special accept flag that indicates whether the receiver wants the event. You should call <a href="qevent.html#accept">QTabletEvent::accept</a>() if you handle the tablet event; otherwise it will be sent to the parent widget. The exception are <a href="qevent.html#Type-enum">TabletEnterProximity</a> and <a href="qevent.html#Type-enum">TabletLeaveProximity</a> events, these are only sent to <a href="qapplication.html">QApplication</a> and don't check whether or not they are accepted.</p>
<p>The <a href="qwidget.html#enabled-prop">QWidget::setEnabled</a>() function can be used to enable or disable mouse and keyboard events for a widget.</p>
<p>The event handler <a href="qwidget.html#tabletEvent">QWidget::tabletEvent</a>() receives all three types of tablet events. Qt will first send a tabletEvent then, if it is not accepted, it will send a mouse event. This allows applications that don't utilize tablets to use a tablet like a mouse, while also enabling those who want to use both tablets and mouses differently.</p>
<a name="notes-for-x11-users"></a>
<h3>Notes for X11 Users</h3>
<p>Qt uses the following hard-coded names to identify tablet devices from the xorg.conf file on X11 (apart from IRIX): 'stylus', 'pen', and 'eraser'. If the devices have other names, they will not be picked up Qt.</p>
</div>
<!-- @@@QTabletEvent -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$PointerType$$$UnknownPointer$$$Pen$$$Cursor$$$Eraser -->
<h3 class="fn"><a name="PointerType-enum"></a>enum QTabletEvent::<span class="name">PointerType</span></h3>
<p>This enum defines what type of point is generating the event.</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>QTabletEvent::UnknownPointer</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">An unknown device.</td></tr>
<tr><td class="topAlign"><tt>QTabletEvent::Pen</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">Tip end of a stylus-like device (the narrow end of the pen).</td></tr>
<tr><td class="topAlign"><tt>QTabletEvent::Cursor</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">Any puck-like device.</td></tr>
<tr><td class="topAlign"><tt>QTabletEvent::Eraser</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">Eraser end of a stylus-like device (the broad end of the pen).</td></tr>
</table>
<p><b>See also </b><a href="qtabletevent.html#pointerType">pointerType</a>().</p>
<!-- @@@PointerType -->
<!-- $$$TabletDevice$$$NoDevice$$$Puck$$$Stylus$$$Airbrush$$$FourDMouse$$$XFreeEraser$$$RotationStylus -->
<h3 class="fn"><a name="TabletDevice-enum"></a>enum QTabletEvent::<span class="name">TabletDevice</span></h3>
<p>This enum defines what type of device is generating the event.</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>QTabletEvent::NoDevice</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">No device, or an unknown device.</td></tr>
<tr><td class="topAlign"><tt>QTabletEvent::Puck</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">A Puck (a device that is similar to a flat mouse with a transparent circle with cross-hairs).</td></tr>
<tr><td class="topAlign"><tt>QTabletEvent::Stylus</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">A Stylus.</td></tr>
<tr><td class="topAlign"><tt>QTabletEvent::Airbrush</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">An airbrush</td></tr>
<tr><td class="topAlign"><tt>QTabletEvent::FourDMouse</tt></td><td class="topAlign"><tt>4</tt></td><td class="topAlign">A 4D Mouse.</td></tr>
<tr><td class="topAlign"><tt>QTabletEvent::RotationStylus</tt></td><td class="topAlign"><tt>6</tt></td><td class="topAlign">A special stylus that also knows about rotation (a 6D stylus).</td></tr>
</table>
<p>This enum was introduced or modified in Qt 4.1.</p>
<!-- @@@TabletDevice -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QTabletEvent[overload1]$$$QTabletEventTypeconstQPoint&constQPoint&constQPointF&intintqrealintintqrealqrealintQt::KeyboardModifiersqint64 -->
<h3 class="fn"><a name="QTabletEvent"></a>QTabletEvent::<span class="name">QTabletEvent</span> ( <span class="type"><a href="qevent.html#Type-enum">Type</a></span> <i>type</i>, const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>pos</i>, const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>globalPos</i>, const <span class="type"><a href="qpointf.html">QPointF</a></span> &amp; <i>hiResGlobalPos</i>, <span class="type">int</span> <i>device</i>, <span class="type">int</span> <i>pointerType</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>pressure</i>, <span class="type">int</span> <i>xTilt</i>, <span class="type">int</span> <i>yTilt</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>tangentialPressure</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>rotation</i>, <span class="type">int</span> <i>z</i>, <span class="type"><a href="qt.html#KeyboardModifier-enum">Qt::KeyboardModifiers</a></span> <i>keyState</i>, <span class="type"><a href="qtglobal.html#qint64-typedef">qint64</a></span> <i>uniqueID</i> )</h3>
<p>Construct a tablet event of the given <i>type</i>.</p>
<p>The <i>pos</i> parameter indicates where the event occurred in the widget; <i>globalPos</i> is the corresponding position in absolute coordinates. The <i>hiResGlobalPos</i> contains a high resolution measurement of the position.</p>
<p><i>pressure</i> contains the pressure exerted on the <i>device</i>.</p>
<p><i>pointerType</i> describes the type of pen that is being used.</p>
<p><i>xTilt</i> and <i>yTilt</i> contain the device's degree of tilt from the x and y axes respectively.</p>
<p><i>keyState</i> specifies which keyboard modifiers are pressed (e.g&#x2e;, <b>Ctrl</b>).</p>
<p>The <i>uniqueID</i> parameter contains the unique ID for the current device.</p>
<p>The <i>z</i> parameter contains the coordinate of the device on the tablet, this is usually given by a wheel on 4D mouse. If the device does not support a Z-axis, pass zero here.</p>
<p>The <i>tangentialPressure</i> parameter contins the tangential pressure of an air brush. If the device does not support tangential pressure, pass 0 here.</p>
<p><i>rotation</i> contains the device's rotation in degrees. 4D mice support rotation. If the device does not support rotation, pass 0 here.</p>
<p><b>See also </b><a href="qtabletevent.html#pos">pos</a>(), <a href="qtabletevent.html#globalPos">globalPos</a>(), <a href="qtabletevent.html#device">device</a>(), <a href="qtabletevent.html#pressure">pressure</a>(), <a href="qtabletevent.html#xTilt">xTilt</a>(), <a href="qtabletevent.html#yTilt">yTilt</a>(), <a href="qtabletevent.html#uniqueId">uniqueId</a>(), <a href="qtabletevent.html#rotation">rotation</a>(), <a href="qtabletevent.html#tangentialPressure">tangentialPressure</a>(), and <a href="qtabletevent.html#z">z</a>().</p>
<!-- @@@QTabletEvent -->
<!-- $$$device[overload1]$$$device -->
<h3 class="fn"><a name="device"></a><span class="type"><a href="qtabletevent.html#TabletDevice-enum">TabletDevice</a></span> QTabletEvent::<span class="name">device</span> () const</h3>
<p>Returns the type of device that generated the event.</p>
<p><b>See also </b><a href="qtabletevent.html#TabletDevice-enum">TabletDevice</a>.</p>
<!-- @@@device -->
<!-- $$$globalPos[overload1]$$$globalPos -->
<h3 class="fn"><a name="globalPos"></a>const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; QTabletEvent::<span class="name">globalPos</span> () const</h3>
<p>Returns the global position of the device <i>at the time of the event</i>. This is important on asynchronous windows systems like X11; whenever you move your widgets around in response to mouse events, globalPos() can differ significantly from the current position <a href="qcursor.html#pos">QCursor::pos</a>().</p>
<p><b>See also </b><a href="qtabletevent.html#globalX">globalX</a>(), <a href="qtabletevent.html#globalY">globalY</a>(), and <a href="qtabletevent.html#hiResGlobalPos">hiResGlobalPos</a>().</p>
<!-- @@@globalPos -->
<!-- $$$globalX[overload1]$$$globalX -->
<h3 class="fn"><a name="globalX"></a><span class="type">int</span> QTabletEvent::<span class="name">globalX</span> () const</h3>
<p>Returns the global x position of the mouse pointer at the time of the event.</p>
<p><b>See also </b><a href="qtabletevent.html#globalY">globalY</a>(), <a href="qtabletevent.html#globalPos">globalPos</a>(), and <a href="qtabletevent.html#hiResGlobalX">hiResGlobalX</a>().</p>
<!-- @@@globalX -->
<!-- $$$globalY[overload1]$$$globalY -->
<h3 class="fn"><a name="globalY"></a><span class="type">int</span> QTabletEvent::<span class="name">globalY</span> () const</h3>
<p>Returns the global y position of the tablet device at the time of the event.</p>
<p><b>See also </b><a href="qtabletevent.html#globalX">globalX</a>(), <a href="qtabletevent.html#globalPos">globalPos</a>(), and <a href="qtabletevent.html#hiResGlobalY">hiResGlobalY</a>().</p>
<!-- @@@globalY -->
<!-- $$$hiResGlobalPos[overload1]$$$hiResGlobalPos -->
<h3 class="fn"><a name="hiResGlobalPos"></a>const <span class="type"><a href="qpointf.html">QPointF</a></span> &amp; QTabletEvent::<span class="name">hiResGlobalPos</span> () const</h3>
<p>The high precision coordinates delivered from the tablet expressed. Sub pixeling information is in the fractional part of the <a href="qpointf.html">QPointF</a>.</p>
<p><b>See also </b><a href="qtabletevent.html#globalPos">globalPos</a>(), <a href="qtabletevent.html#hiResGlobalX">hiResGlobalX</a>(), and <a href="qtabletevent.html#hiResGlobalY">hiResGlobalY</a>().</p>
<!-- @@@hiResGlobalPos -->
<!-- $$$hiResGlobalX[overload1]$$$hiResGlobalX -->
<h3 class="fn"><a name="hiResGlobalX"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QTabletEvent::<span class="name">hiResGlobalX</span> () const</h3>
<p>The high precision x position of the tablet device.</p>
<!-- @@@hiResGlobalX -->
<!-- $$$hiResGlobalY[overload1]$$$hiResGlobalY -->
<h3 class="fn"><a name="hiResGlobalY"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QTabletEvent::<span class="name">hiResGlobalY</span> () const</h3>
<p>The high precision y position of the tablet device.</p>
<!-- @@@hiResGlobalY -->
<!-- $$$pointerType[overload1]$$$pointerType -->
<h3 class="fn"><a name="pointerType"></a><span class="type"><a href="qtabletevent.html#PointerType-enum">PointerType</a></span> QTabletEvent::<span class="name">pointerType</span> () const</h3>
<p>Returns the type of point that generated the event.</p>
<!-- @@@pointerType -->
<!-- $$$pos[overload1]$$$pos -->
<h3 class="fn"><a name="pos"></a>const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; QTabletEvent::<span class="name">pos</span> () const</h3>
<p>Returns the position of the device, relative to the widget that received the event.</p>
<p>If you move widgets around in response to mouse events, use <a href="qtabletevent.html#globalPos">globalPos</a>() instead of this function.</p>
<p><b>See also </b><a href="qtabletevent.html#x">x</a>(), <a href="qtabletevent.html#y">y</a>(), and <a href="qtabletevent.html#globalPos">globalPos</a>().</p>
<!-- @@@pos -->
<!-- $$$pressure[overload1]$$$pressure -->
<h3 class="fn"><a name="pressure"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QTabletEvent::<span class="name">pressure</span> () const</h3>
<p>Returns the pressure for the device. 0.0 indicates that the stylus is not on the tablet, 1.0 indicates the maximum amount of pressure for the stylus.</p>
<p><b>See also </b><a href="qtabletevent.html#tangentialPressure">tangentialPressure</a>().</p>
<!-- @@@pressure -->
<!-- $$$rotation[overload1]$$$rotation -->
<h3 class="fn"><a name="rotation"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QTabletEvent::<span class="name">rotation</span> () const</h3>
<p>Returns the rotation of the current device in degress. This is usually given by a 4D Mouse. If the device doesn't support rotation this value is always 0.0&#x2e;</p>
<!-- @@@rotation -->
<!-- $$$tangentialPressure[overload1]$$$tangentialPressure -->
<h3 class="fn"><a name="tangentialPressure"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QTabletEvent::<span class="name">tangentialPressure</span> () const</h3>
<p>Returns the tangential pressure for the device. This is typically given by a finger wheel on an airbrush tool. The range is from -1.0 to 1.0&#x2e; 0.0 indicates a neutral position. Current airbrushes can only move in the positive direction from the neutrual position. If the device does not support tangential pressure, this value is always 0.0&#x2e;</p>
<p><b>See also </b><a href="qtabletevent.html#pressure">pressure</a>().</p>
<!-- @@@tangentialPressure -->
<!-- $$$uniqueId[overload1]$$$uniqueId -->
<h3 class="fn"><a name="uniqueId"></a><span class="type"><a href="qtglobal.html#qint64-typedef">qint64</a></span> QTabletEvent::<span class="name">uniqueId</span> () const</h3>
<p>Returns a unique ID for the current device, making it possible to differentiate between multiple devices being used at the same time on the tablet.</p>
<p>Support of this feature is dependent on the tablet.</p>
<p>Values for the same device may vary from OS to OS.</p>
<p>Later versions of the Wacom driver for Linux will now report the ID information. If you have a tablet that supports unique ID and are not getting the information on Linux, consider upgrading your driver.</p>
<p>As of Qt 4.2, the unique ID is the same regardless of the orientation of the pen. Earlier versions would report a different value when using the eraser-end versus the pen-end of the stylus on some OS's.</p>
<p><b>See also </b><a href="qtabletevent.html#pointerType">pointerType</a>().</p>
<!-- @@@uniqueId -->
<!-- $$$x[overload1]$$$x -->
<h3 class="fn"><a name="x"></a><span class="type">int</span> QTabletEvent::<span class="name">x</span> () const</h3>
<p>Returns the x position of the device, relative to the widget that received the event.</p>
<p><b>See also </b><a href="qtabletevent.html#y">y</a>() and <a href="qtabletevent.html#pos">pos</a>().</p>
<!-- @@@x -->
<!-- $$$xTilt[overload1]$$$xTilt -->
<h3 class="fn"><a name="xTilt"></a><span class="type">int</span> QTabletEvent::<span class="name">xTilt</span> () const</h3>
<p>Returns the angle between the device (a pen, for example) and the perpendicular in the direction of the x axis. Positive values are towards the tablet's physical right. The angle is in the range -60 to +60 degrees.</p>
<p class="centerAlign"><img src="images/qtabletevent-tilt.png" alt="" /></p><p><b>See also </b><a href="qtabletevent.html#yTilt">yTilt</a>().</p>
<!-- @@@xTilt -->
<!-- $$$y[overload1]$$$y -->
<h3 class="fn"><a name="y"></a><span class="type">int</span> QTabletEvent::<span class="name">y</span> () const</h3>
<p>Returns the y position of the device, relative to the widget that received the event.</p>
<p><b>See also </b><a href="qtabletevent.html#x">x</a>() and <a href="qtabletevent.html#pos">pos</a>().</p>
<!-- @@@y -->
<!-- $$$yTilt[overload1]$$$yTilt -->
<h3 class="fn"><a name="yTilt"></a><span class="type">int</span> QTabletEvent::<span class="name">yTilt</span> () const</h3>
<p>Returns the angle between the device (a pen, for example) and the perpendicular in the direction of the y axis. Positive values are towards the bottom of the tablet. The angle is within the range -60 to +60 degrees.</p>
<p><b>See also </b><a href="qtabletevent.html#xTilt">xTilt</a>().</p>
<!-- @@@yTilt -->
<!-- $$$z[overload1]$$$z -->
<h3 class="fn"><a name="z"></a><span class="type">int</span> QTabletEvent::<span class="name">z</span> () const</h3>
<p>Returns the z position of the device. Typically this is represented by a wheel on a 4D Mouse. If the device does not support a Z-axis, this value is always zero. This is <b>not</b> the same as pressure.</p>
<p><b>See also </b><a href="qtabletevent.html#pressure">pressure</a>().</p>
<!-- @@@z -->
</div>
  <div class="ft">
    <span></span>
  </div>
</div> 
<div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2012 Nokia Corporation and/or its
      subsidiaries. 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>
      Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
      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>
</body>
</html>