~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to doc/html/qevent.html

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-08-24 04:09:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050824040909-xmxe9jfr4a0w5671
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="iso-8859-1"?>
 
2
<!DOCTYPE html
 
3
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
 
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
5
<!-- /tmp/qt-4.0.0-espenr-1119621036935/qt-x11-opensource-desktop-4.0.0/src/corelib/kernel/qcoreevent.cpp -->
 
6
<head>
 
7
    <title>Qt 4.0: QEvent Class Reference</title>
 
8
    <style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
 
9
a:link { color: #004faf; text-decoration: none }
 
10
a:visited { color: #672967; text-decoration: none }
 
11
td.postheader { font-family: sans-serif }
 
12
tr.address { font-family: sans-serif }
 
13
body { background: #ffffff; color: black; }</style>
 
14
</head>
 
15
<body>
 
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
 
17
<tr>
 
18
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></td>
 
19
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="annotated.html"><font color="#004faf">Annotated</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
 
20
<td align="right" valign="top" width="230"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></td></tr></table><h1 align="center">QEvent Class Reference</h1>
 
21
<p>The QEvent class is the base class of all event classes. Event objects contain event parameters. <a href="#details">More...</a></p>
 
22
<pre>#include &lt;QEvent&gt;</pre><p>Part of the <a href="qtcore.html">QtCore</a> module.</p>
 
23
<p>Inherited by <a href="qaccessibleevent.html">QAccessibleEvent</a>, <a href="qactionevent.html">QActionEvent</a>, <a href="qchildevent.html">QChildEvent</a>, <a href="qcloseevent.html">QCloseEvent</a>, <a href="qcustomevent.html">QCustomEvent</a>, <a href="qdragleaveevent.html">QDragLeaveEvent</a>, <a href="qdropevent.html">QDropEvent</a>, <a href="qfileopenevent.html">QFileOpenEvent</a>, <a href="qfocusevent.html">QFocusEvent</a>, <a href="qhelpevent.html">QHelpEvent</a>, <a href="qhideevent.html">QHideEvent</a>, <a href="qhoverevent.html">QHoverEvent</a>, <a href="qicondragevent.html">QIconDragEvent</a>, <a href="qinputevent.html">QInputEvent</a>, <a href="qinputmethodevent.html">QInputMethodEvent</a>, <a href="qmoveevent.html">QMoveEvent</a>, <a href="qpaintevent.html">QPaintEvent</a>, <a href="qresizeevent.html">QResizeEvent</a>, <a href="qshortcutevent.html">QShortcutEvent</a>, <a href="qshowevent.html">QShowEvent</a>, <a href="qstatustipevent.html">QStatusTipEvent</a>, <a href="qtimerevent.html">QTimerEvent</a>, <a href="qwhatsthisclickedevent.html">QWhatsThisClickedEvent</a>, and <a href="qwindowstatechangeevent.html">QWindowStateChangeEvent</a>.</p>
 
24
<ul>
 
25
<li><a href="qevent-members.html">List of all members, including inherited members</a></li>
 
26
</ul>
 
27
<a name="public-types"></a>
 
28
<h3>Public Types</h3>
 
29
<ul>
 
30
<li><div class="fn"/>enum <b><a href="qevent.html#Type-enum">Type</a></b> { None, AccessibilityDescription, AccessibilityHelp, AccessibilityPrepare, ..., MaxUser }</li>
 
31
</ul>
 
32
<a name="properties"></a>
 
33
<h3>Properties</h3>
 
34
<ul>
 
35
<li><div class="fn"/><b><a href="qevent.html#accepted-prop">accepted</a></b> : bool</li>
 
36
</ul>
 
37
<a name="public-functions"></a>
 
38
<h3>Public Functions</h3>
 
39
<ul>
 
40
<li><div class="fn"/><b><a href="qevent.html#QEvent">QEvent</a></b> ( Type <i>type</i> )</li>
 
41
<li><div class="fn"/>virtual <b><a href="qevent.html#dtor.QEvent">~QEvent</a></b> ()</li>
 
42
<li><div class="fn"/>void <b><a href="qevent.html#accept">accept</a></b> ()</li>
 
43
<li><div class="fn"/>void <b><a href="qevent.html#ignore">ignore</a></b> ()</li>
 
44
<li><div class="fn"/>bool <b><a href="qevent.html#accepted-prop">isAccepted</a></b> () const</li>
 
45
<li><div class="fn"/>void <b><a href="qevent.html#accepted-prop">setAccepted</a></b> ( bool <i>accepted</i> )</li>
 
46
<li><div class="fn"/>bool <b><a href="qevent.html#spontaneous">spontaneous</a></b> () const</li>
 
47
<li><div class="fn"/>Type <b><a href="qevent.html#type">type</a></b> () const</li>
 
48
</ul>
 
49
<a name="details"></a>
 
50
<hr />
 
51
<h2>Detailed Description</h2>
 
52
<p>The QEvent class is the base class of all event classes. Event objects contain event parameters.</p>
 
53
<p>Qt's main event loop (<a href="qcoreapplication.html#exec">QCoreApplication::exec</a>()) fetches native window system events from the event queue, translates them into QEvents, and sends the translated events to <a href="qobject.html">QObject</a>s.</p>
 
54
<p>In general, events come from the underlying window system (<a href="qevent.html#spontaneous">spontaneous</a>() returns true), but it is also possible to manually send events using <a href="qcoreapplication.html#sendEvent">QCoreApplication::sendEvent</a>() and <a href="qcoreapplication.html#postEvent">QCoreApplication::postEvent</a>() (<a href="qevent.html#spontaneous">spontaneous</a>() returns false).</p>
 
55
<p>QObjects receive events by having their <a href="qobject.html#event">QObject::event</a>() function called. The function can be reimplemented in subclasses to customize event handling and add additional event types; <a href="qwidget.html#event">QWidget::event</a>() is a notable example. By default, events are dispatched to event handlers like <a href="qobject.html#timerEvent">QObject::timerEvent</a>() and <a href="qwidget.html#mouseMoveEvent">QWidget::mouseMoveEvent</a>(). <a href="qobject.html#installEventFilter">QObject::installEventFilter</a>() allows an object to intercept events destined for another object.</p>
 
56
<p>The basic QEvent contains only an event type parameter and an &quot;accept&quot; flag. The accept flag set with <a href="qevent.html#accept">accept</a>(), and cleared with <a href="qevent.html#ignore">ignore</a>(). It is set by default, but don't rely on this as subclasses may choose to clear it in their constructor.</p>
 
57
<p>Subclasses of QEvent contain additional parameters that describe the particular event.</p>
 
58
<p>See also <a href="qobject.html#event">QObject::event</a>(), <a href="qobject.html#installEventFilter">QObject::installEventFilter</a>(), <a href="qwidget.html#event">QWidget::event</a>(), <a href="qcoreapplication.html#sendEvent">QCoreApplication::sendEvent</a>(), <a href="qcoreapplication.html#postEvent">QCoreApplication::postEvent</a>(), and <a href="qcoreapplication.html#processEvents">QCoreApplication::processEvents</a>().</p>
 
59
<hr />
 
60
<h2>Member Type Documentation</h2>
 
61
<h3 class="fn"><a name="Type-enum"></a>enum QEvent::Type</h3>
 
62
<p>This enum type defines the valid event types in Qt. The event types and the specialized classes for each type are as follows:</p>
 
63
<table border="1" cellpadding="2" cellspacing="1" width="100%">
 
64
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
 
65
<tr><td valign="top"><tt>QEvent::None</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">Not an event.</td></tr>
 
66
<tr><td valign="top"><tt>QEvent::AccessibilityDescription</tt></td><td align="center" valign="top"><tt>130</tt></td><td valign="top">Used to query accessibility description texts (<a href="qaccessibleevent.html">QAccessibleEvent</a>).</td></tr>
 
67
<tr><td valign="top"><tt>QEvent::AccessibilityHelp</tt></td><td align="center" valign="top"><tt>119</tt></td><td valign="top">Used to query accessibility help texts (<a href="qaccessibleevent.html">QAccessibleEvent</a>).</td></tr>
 
68
<tr><td valign="top"><tt>QEvent::AccessibilityPrepare</tt></td><td align="center" valign="top"><tt>86</tt></td><td valign="top">Accessibility information is requested.</td></tr>
 
69
<tr><td valign="top"><tt>QEvent::ActionAdded</tt></td><td align="center" valign="top"><tt>114</tt></td><td valign="top">A new action has been added (<a href="qactionevent.html">QActionEvent</a>).</td></tr>
 
70
<tr><td valign="top"><tt>QEvent::ActionChanged</tt></td><td align="center" valign="top"><tt>113</tt></td><td valign="top">An action has been changed (<a href="qactionevent.html">QActionEvent</a>).</td></tr>
 
71
<tr><td valign="top"><tt>QEvent::ActionRemoved</tt></td><td align="center" valign="top"><tt>115</tt></td><td valign="top">An action has been removed (<a href="qactionevent.html">QActionEvent</a>).</td></tr>
 
72
<tr><td valign="top"><tt>QEvent::ActivationChange</tt></td><td align="center" valign="top"><tt>99</tt></td><td valign="top">A widget's top-level window activation state has changed.</td></tr>
 
73
<tr><td valign="top"><tt>QEvent::ApplicationActivated</tt></td><td align="center" valign="top"><tt>121</tt></td><td valign="top">The application has been made available to the user.</td></tr>
 
74
<tr><td valign="top"><tt>QEvent::ApplicationDeactivated</tt></td><td align="center" valign="top"><tt>122</tt></td><td valign="top">The application has been suspended, and is unavailable to the user.</td></tr>
 
75
<tr><td valign="top"><tt>QEvent::ApplicationFontChange</tt></td><td align="center" valign="top"><tt>36</tt></td><td valign="top">The default application font has changed.</td></tr>
 
76
<tr><td valign="top"><tt>QEvent::ApplicationLayoutDirectionChange</tt></td><td align="center" valign="top"><tt>37</tt></td><td valign="top">The default application layout direction has changed.</td></tr>
 
77
<tr><td valign="top"><tt>QEvent::ApplicationPaletteChange</tt></td><td align="center" valign="top"><tt>38</tt></td><td valign="top">The default application palette has changed.</td></tr>
 
78
<tr><td valign="top"><tt>QEvent::ApplicationWindowIconChange</tt></td><td align="center" valign="top"><tt>35</tt></td><td valign="top">The application's icon has changed.</td></tr>
 
79
<tr><td valign="top"><tt>QEvent::ChildAdded</tt></td><td align="center" valign="top"><tt>68</tt></td><td valign="top">An object gets a child (<a href="qchildevent.html">QChildEvent</a>).</td></tr>
 
80
<tr><td valign="top"><tt>QEvent::ChildPolished</tt></td><td align="center" valign="top"><tt>69</tt></td><td valign="top">A widget child gets polished (<a href="qchildevent.html">QChildEvent</a>).</td></tr>
 
81
<tr><td valign="top"><tt>QEvent::ChildRemoved</tt></td><td align="center" valign="top"><tt>71</tt></td><td valign="top">An object loses a child (<a href="qchildevent.html">QChildEvent</a>).</td></tr>
 
82
<tr><td valign="top"><tt>QEvent::Clipboard</tt></td><td align="center" valign="top"><tt>40</tt></td><td valign="top">The clipboard contents have changed (<a href="qclipboardevent.html">QClipboardEvent</a>).</td></tr>
 
83
<tr><td valign="top"><tt>QEvent::Close</tt></td><td align="center" valign="top"><tt>19</tt></td><td valign="top">Widget was closed (<a href="qcloseevent.html">QCloseEvent</a>).</td></tr>
 
84
<tr><td valign="top"><tt>QEvent::ContextMenu</tt></td><td align="center" valign="top"><tt>82</tt></td><td valign="top">Context popup menu (<a href="qcontextmenuevent.html">QContextMenuEvent</a>).</td></tr>
 
85
<tr><td valign="top"><tt>QEvent::DeferredDelete</tt></td><td align="center" valign="top"><tt>52</tt></td><td valign="top">The object will be deleted after it has cleaned up.</td></tr>
 
86
<tr><td valign="top"><tt>QEvent::DragEnter</tt></td><td align="center" valign="top"><tt>60</tt></td><td valign="top">The cursor enters a widget during a drag and drop action (<a href="qdragenterevent.html">QDragEnterEvent</a>).</td></tr>
 
87
<tr><td valign="top"><tt>QEvent::DragLeave</tt></td><td align="center" valign="top"><tt>62</tt></td><td valign="top">The cursor leaves a widget during a drag and drop action (<a href="qdragleaveevent.html">QDragLeaveEvent</a>).</td></tr>
 
88
<tr><td valign="top"><tt>QEvent::DragMove</tt></td><td align="center" valign="top"><tt>61</tt></td><td valign="top">A drag and drop action is in progress (<a href="qdragmoveevent.html">QDragMoveEvent</a>).</td></tr>
 
89
<tr><td valign="top"><tt>QEvent::Drop</tt></td><td align="center" valign="top"><tt>63</tt></td><td valign="top">A drag and drop action is completed (<a href="qdropevent.html">QDropEvent</a>).</td></tr>
 
90
<tr><td valign="top"><tt>QEvent::EnabledChange</tt></td><td align="center" valign="top"><tt>98</tt></td><td valign="top">Widget's enabled state has changed.</td></tr>
 
91
<tr><td valign="top"><tt>QEvent::Enter</tt></td><td align="center" valign="top"><tt>10</tt></td><td valign="top">Mouse enters widget's boundaries.</td></tr>
 
92
<tr><td valign="top"><tt>QEvent::EnterWhatsThisMode</tt></td><td align="center" valign="top"><tt>124</tt></td><td valign="top">Send to toplevel widgets when the application enters &quot;What's This?&quot; mode.</td></tr>
 
93
<tr><td valign="top"><tt>QEvent::FileOpen</tt></td><td align="center" valign="top"><tt>116</tt></td><td valign="top">File open request (<a href="qfileopenevent.html">QFileOpenEvent</a>).</td></tr>
 
94
<tr><td valign="top"><tt>QEvent::FocusIn</tt></td><td align="center" valign="top"><tt>8</tt></td><td valign="top">Widget gains keyboard focus (<a href="qfocusevent.html">QFocusEvent</a>).</td></tr>
 
95
<tr><td valign="top"><tt>QEvent::FocusOut</tt></td><td align="center" valign="top"><tt>9</tt></td><td valign="top">Widget loses keyboard focus (<a href="qfocusevent.html">QFocusEvent</a>).</td></tr>
 
96
<tr><td valign="top"><tt>QEvent::FontChange</tt></td><td align="center" valign="top"><tt>97</tt></td><td valign="top">Widget's font has changed.</td></tr>
 
97
<tr><td valign="top"><tt>QEvent::Hide</tt></td><td align="center" valign="top"><tt>18</tt></td><td valign="top">Widget was hidden (<a href="qhideevent.html">QHideEvent</a>).</td></tr>
 
98
<tr><td valign="top"><tt>QEvent::HideToParent</tt></td><td align="center" valign="top"><tt>27</tt></td><td valign="top">A child widget has been hidden.</td></tr>
 
99
<tr><td valign="top"><tt>QEvent::HoverEnter</tt></td><td align="center" valign="top"><tt>127</tt></td><td valign="top">The mouse cursor enters a hover widget (<a href="qhoverevent.html">QHoverEvent</a>).</td></tr>
 
100
<tr><td valign="top"><tt>QEvent::HoverLeave</tt></td><td align="center" valign="top"><tt>128</tt></td><td valign="top">The mouse cursor leaves a hover widget (<a href="qhoverevent.html">QHoverEvent</a>).</td></tr>
 
101
<tr><td valign="top"><tt>QEvent::HoverMove</tt></td><td align="center" valign="top"><tt>129</tt></td><td valign="top">The mouse cursor moves inside a hover widget (<a href="qhoverevent.html">QHoverEvent</a>).</td></tr>
 
102
<tr><td valign="top"><tt>QEvent::IconDrag</tt></td><td align="center" valign="top"><tt>96</tt></td><td valign="top">The main icon of a window has been dragged away (<a href="qicondragevent.html">QIconDragEvent</a>).</td></tr>
 
103
<tr><td valign="top"><tt>QEvent::IconTextChange</tt></td><td align="center" valign="top"><tt>101</tt></td><td valign="top">Widget's icon text has been changed.</td></tr>
 
104
<tr><td valign="top"><tt>QEvent::InputMethod</tt></td><td align="center" valign="top"><tt>83</tt></td><td valign="top">An input method is being used (<a href="qinputmethodevent.html">QInputMethodEvent</a>).</td></tr>
 
105
<tr><td valign="top"><tt>QEvent::KeyPress</tt></td><td align="center" valign="top"><tt>6</tt></td><td valign="top">Key press (<a href="qkeyevent.html">QKeyEvent</a>).</td></tr>
 
106
<tr><td valign="top"><tt>QEvent::KeyRelease</tt></td><td align="center" valign="top"><tt>7</tt></td><td valign="top">Key release (<a href="qkeyevent.html">QKeyEvent</a>).</td></tr>
 
107
<tr><td valign="top"><tt>QEvent::LanguageChange</tt></td><td align="center" valign="top"><tt>89</tt></td><td valign="top">The application translation changed.</td></tr>
 
108
<tr><td valign="top"><tt>QEvent::LayoutDirectionChange</tt></td><td align="center" valign="top"><tt>90</tt></td><td valign="top">The direction of layouts changed.</td></tr>
 
109
<tr><td valign="top"><tt>QEvent::LayoutRequest</tt></td><td align="center" valign="top"><tt>76</tt></td><td valign="top">Widget layout needs to be redone.</td></tr>
 
110
<tr><td valign="top"><tt>QEvent::Leave</tt></td><td align="center" valign="top"><tt>11</tt></td><td valign="top">Mouse leaves widget's boundaries.</td></tr>
 
111
<tr><td valign="top"><tt>QEvent::LeaveWhatsThisMode</tt></td><td align="center" valign="top"><tt>125</tt></td><td valign="top">Send to toplevel widgets when the application leaves &quot;What's This?&quot; mode.</td></tr>
 
112
<tr><td valign="top"><tt>QEvent::LocaleChange</tt></td><td align="center" valign="top"><tt>88</tt></td><td valign="top">The system locale has changed.</td></tr>
 
113
<tr><td valign="top"><tt>QEvent::MetaCall</tt></td><td align="center" valign="top"><tt>43</tt></td><td valign="top">An asynchronous method invocation via <a href="qmetaobject.html#invokeMethod">QMetaObject::invokeMethod</a>().</td></tr>
 
114
<tr><td valign="top"><tt>QEvent::ModifiedChange</tt></td><td align="center" valign="top"><tt>102</tt></td><td valign="top">Widgets modification state has been changed.</td></tr>
 
115
<tr><td valign="top"><tt>QEvent::MouseButtonDblClick</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top">Mouse press again (<a href="qmouseevent.html">QMouseEvent</a>).</td></tr>
 
116
<tr><td valign="top"><tt>QEvent::MouseButtonPress</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">Mouse press (<a href="qmouseevent.html">QMouseEvent</a>).</td></tr>
 
117
<tr><td valign="top"><tt>QEvent::MouseButtonRelease</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">Mouse release (<a href="qmouseevent.html">QMouseEvent</a>).</td></tr>
 
118
<tr><td valign="top"><tt>QEvent::MouseMove</tt></td><td align="center" valign="top"><tt>5</tt></td><td valign="top">Mouse move (<a href="qmouseevent.html">QMouseEvent</a>).</td></tr>
 
119
<tr><td valign="top"><tt>QEvent::MouseTrackingChange</tt></td><td align="center" valign="top"><tt>109</tt></td><td valign="top">The mouse tracking state has changed.</td></tr>
 
120
<tr><td valign="top"><tt>QEvent::Move</tt></td><td align="center" valign="top"><tt>13</tt></td><td valign="top">Widget's position changed (<a href="qmoveevent.html">QMoveEvent</a>).</td></tr>
 
121
<tr><td valign="top"><tt>QEvent::Paint</tt></td><td align="center" valign="top"><tt>12</tt></td><td valign="top">Screen update necessary (<a href="qpaintevent.html">QPaintEvent</a>).</td></tr>
 
122
<tr><td valign="top"><tt>QEvent::PaletteChange</tt></td><td align="center" valign="top"><tt>39</tt></td><td valign="top">Palette of the widget changed.</td></tr>
 
123
<tr><td valign="top"><tt>QEvent::ParentAboutToChange</tt></td><td align="center" valign="top"><tt>131</tt></td><td valign="top">The widget parent is about to change.</td></tr>
 
124
<tr><td valign="top"><tt>QEvent::ParentChange</tt></td><td align="center" valign="top"><tt>21</tt></td><td valign="top">The widget parent has changed.</td></tr>
 
125
<tr><td valign="top"><tt>QEvent::Polish</tt></td><td align="center" valign="top"><tt>75</tt></td><td valign="top">The widget is polished.</td></tr>
 
126
<tr><td valign="top"><tt>QEvent::PolishRequest</tt></td><td align="center" valign="top"><tt>74</tt></td><td valign="top">The widget should be polished.</td></tr>
 
127
<tr><td valign="top"><tt>QEvent::QueryWhatsThis</tt></td><td align="center" valign="top"><tt>123</tt></td><td valign="top">The widget should accept the event if it has &quot;What's This?&quot; help.</td></tr>
 
128
<tr><td valign="top"><tt>QEvent::Resize</tt></td><td align="center" valign="top"><tt>14</tt></td><td valign="top">Widget's size changed (<a href="qresizeevent.html">QResizeEvent</a>).</td></tr>
 
129
<tr><td valign="top"><tt>QEvent::Shortcut</tt></td><td align="center" valign="top"><tt>117</tt></td><td valign="top">Key press in child for shortcut key handling (<a href="qshortcutevent.html">QShortcutEvent</a>).</td></tr>
 
130
<tr><td valign="top"><tt>QEvent::ShortcutOverride</tt></td><td align="center" valign="top"><tt>51</tt></td><td valign="top">Key press in child, for overriding shortcut key handling (<a href="qkeyevent.html">QKeyEvent</a>).</td></tr>
 
131
<tr><td valign="top"><tt>QEvent::Show</tt></td><td align="center" valign="top"><tt>17</tt></td><td valign="top">Widget was shown on screen (<a href="qshowevent.html">QShowEvent</a>).</td></tr>
 
132
<tr><td valign="top"><tt>QEvent::ShowToParent</tt></td><td align="center" valign="top"><tt>26</tt></td><td valign="top">A child widget has been shown.</td></tr>
 
133
<tr><td valign="top"><tt>QEvent::SockAct</tt></td><td align="center" valign="top"><tt>50</tt></td><td valign="top">Socket activated, used to implement <a href="qsocketnotifier.html">QSocketNotifier</a>.</td></tr>
 
134
<tr><td valign="top"><tt>QEvent::StatusTip</tt></td><td align="center" valign="top"><tt>112</tt></td><td valign="top">A status tip is requested (<a href="qstatustipevent.html">QStatusTipEvent</a>).</td></tr>
 
135
<tr><td valign="top"><tt>QEvent::StyleChange</tt></td><td align="center" valign="top"><tt>100</tt></td><td valign="top">Widget's style has been changed.</td></tr>
 
136
<tr><td valign="top"><tt>QEvent::TabletMove</tt></td><td align="center" valign="top"><tt>87</tt></td><td valign="top">Wacom tablet move (<a href="qtabletevent.html">QTabletEvent</a>).</td></tr>
 
137
<tr><td valign="top"><tt>QEvent::TabletPress</tt></td><td align="center" valign="top"><tt>92</tt></td><td valign="top">Wacom tablet press (<a href="qtabletevent.html">QTabletEvent</a>).</td></tr>
 
138
<tr><td valign="top"><tt>QEvent::TabletRelease</tt></td><td align="center" valign="top"><tt>93</tt></td><td valign="top">Wacom tablet release (<a href="qtabletevent.html">QTabletEvent</a>).</td></tr>
 
139
<tr><td valign="top"><tt>QEvent::Timer</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">Regular timer events (<a href="qtimerevent.html">QTimerEvent</a>).</td></tr>
 
140
<tr><td valign="top"><tt>QEvent::ToolBarChange</tt></td><td align="center" valign="top"><tt>120</tt></td><td valign="top">The toolbar button is toggled on Mac OS X.</td></tr>
 
141
<tr><td valign="top"><tt>QEvent::ToolTip</tt></td><td align="center" valign="top"><tt>110</tt></td><td valign="top">A tooltip was requested (<a href="qhelpevent.html">QHelpEvent</a>).</td></tr>
 
142
<tr><td valign="top"><tt>QEvent::UpdateRequest</tt></td><td align="center" valign="top"><tt>77</tt></td><td valign="top">The widget should be repainted.</td></tr>
 
143
<tr><td valign="top"><tt>QEvent::WhatsThis</tt></td><td align="center" valign="top"><tt>111</tt></td><td valign="top">The widget should reveal &quot;What's This?&quot; help (<a href="qhelpevent.html">QHelpEvent</a>).</td></tr>
 
144
<tr><td valign="top"><tt>QEvent::WhatsThisClicked</tt></td><td align="center" valign="top"><tt>118</tt></td><td valign="top">A link in a widget's &quot;What's This?&quot; help was clicked.</td></tr>
 
145
<tr><td valign="top"><tt>QEvent::Wheel</tt></td><td align="center" valign="top"><tt>31</tt></td><td valign="top">Mouse wheel rolled (<a href="qwheelevent.html">QWheelEvent</a>).</td></tr>
 
146
<tr><td valign="top"><tt>QEvent::WinEventAct</tt></td><td align="center" valign="top"><tt>132</tt></td><td valign="top">A Windows-specific activation event has occurred.</td></tr>
 
147
<tr><td valign="top"><tt>QEvent::WindowActivate</tt></td><td align="center" valign="top"><tt>24</tt></td><td valign="top">Window was activated.</td></tr>
 
148
<tr><td valign="top"><tt>QEvent::WindowBlocked</tt></td><td align="center" valign="top"><tt>103</tt></td><td valign="top">The window is blocked by a modal dialog.</td></tr>
 
149
<tr><td valign="top"><tt>QEvent::WindowDeactivate</tt></td><td align="center" valign="top"><tt>25</tt></td><td valign="top">Window was deactivated.</td></tr>
 
150
<tr><td valign="top"><tt>QEvent::WindowIconChange</tt></td><td align="center" valign="top"><tt>34</tt></td><td valign="top">The window's icon has changed.</td></tr>
 
151
<tr><td valign="top"><tt>QEvent::WindowStateChange</tt></td><td align="center" valign="top"><tt>105</tt></td><td valign="top">The <a href="qwidget.html#windowState">window's state</a> (minimized, maximized or full-screen) has changed (<a href="qwindowstatechangeevent.html">QWindowStateChangeEvent</a>).</td></tr>
 
152
<tr><td valign="top"><tt>QEvent::WindowTitleChange</tt></td><td align="center" valign="top"><tt>33</tt></td><td valign="top">The window title has changed.</td></tr>
 
153
<tr><td valign="top"><tt>QEvent::WindowUnblocked</tt></td><td align="center" valign="top"><tt>104</tt></td><td valign="top">The window is unblocked after a modal dialog exited.</td></tr>
 
154
<tr><td valign="top"><tt>QEvent::ZOrderChange</tt></td><td align="center" valign="top"><tt>126</tt></td><td valign="top">The widget's z-order has changed. This event is never sent to top level windows.</td></tr>
 
155
</table>
 
156
<p>User events should have values between <tt>User</tt> and <tt>MaxUser</tt>:</p>
 
157
<table border="1" cellpadding="2" cellspacing="1" width="100%">
 
158
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
 
159
<tr><td valign="top"><tt>QEvent::User</tt></td><td align="center" valign="top"><tt>1000</tt></td><td valign="top">User-defined event.</td></tr>
 
160
<tr><td valign="top"><tt>QEvent::MaxUser</tt></td><td align="center" valign="top"><tt>65535</tt></td><td valign="top">Last user event ID.</td></tr>
 
161
</table>
 
162
<hr />
 
163
<h2>Property Documentation</h2>
 
164
<h3 class="fn"><a name="accepted-prop"></a>accepted : bool</h3>
 
165
<p>the accept flag of the event object</p>
 
166
<p>Setting the accept parameter indicates that the event receiver wants the event. Unwanted events might be propagated to the parent widget. By default, isAccepted() is set to true, but don't rely on this as subclasses may choose to clear it in their constructor.</p>
 
167
<p>For convenience, the accept flag can also be set with <a href="qevent.html#accept">accept</a>(), and cleared with <a href="qevent.html#ignore">ignore</a>().</p>
 
168
<p>Access functions:</p>
 
169
<ul>
 
170
<li><div class="fn"/><b>bool isAccepted () const</b></li>
 
171
<li><div class="fn"/><b>void setAccepted ( bool <i>accepted</i> )</b></li>
 
172
</ul>
 
173
<hr />
 
174
<h2>Member Function Documentation</h2>
 
175
<h3 class="fn"><a name="QEvent"></a>QEvent::QEvent ( <a href="qevent.html#Type-enum">Type</a> <i>type</i> )</h3>
 
176
<p>Contructs an event object of type <i>type</i>.</p>
 
177
<h3 class="fn"><a name="dtor.QEvent"></a>QEvent::~QEvent ()&nbsp;&nbsp;<tt> [virtual]</tt></h3>
 
178
<p>Destroys the event. If it was <a href="qcoreapplication.html#postEvent">posted</a>, it will be removed from the list of events to be posted.</p>
 
179
<h3 class="fn"><a name="accept"></a>void QEvent::accept ()</h3>
 
180
<p>Sets the accept flag of the event object, the equivalent of callign setAccepted(true).</p>
 
181
<p>Setting the accept parameter indicates that the event receiver wants the event. Unwanted events might be propagated to the parent widget.</p>
 
182
<p>See also <a href="qevent.html#ignore">ignore</a>().</p>
 
183
<h3 class="fn"><a name="ignore"></a>void QEvent::ignore ()</h3>
 
184
<p>Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false).</p>
 
185
<p>Clearing the accept parameter indicates that the event receiver does not want the event. Unwanted events might be propgated to the parent widget.</p>
 
186
<p>See also <a href="qevent.html#accept">accept</a>().</p>
 
187
<h3 class="fn"><a name="spontaneous"></a>bool QEvent::spontaneous () const</h3>
 
188
<p>Returns true if the event originated outside the application (a system event); otherwise returns false.</p>
 
189
<p>As an exception, paint events generated by Qt as a result of calling <a href="qwidget.html#repaint">QWidget::repaint</a>() are also considered spontaneous.</p>
 
190
<h3 class="fn"><a name="type"></a><a href="qevent.html#Type-enum">Type</a> QEvent::type () const</h3>
 
191
<p>Returns the event type.</p>
 
192
<p /><address><hr /><div align="center">
 
193
<table width="100%" cellspacing="0" border="0"><tr class="address">
 
194
<td width="30%">Copyright &copy; 2005 <a href="trolltech.html">Trolltech</a></td>
 
195
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
 
196
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
 
197
</tr></table></div></address></body>
 
198
</html>