/usr/share/qt3/doc/html/qevent.html is in qt3-doc 3:3.3.8-b-8ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/kernel/qevent.cpp:43 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>QEvent Class</title>
<style type="text/css"><!--
fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
body { background: #ffffff; color: black; }
--></style>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr bgcolor="#E5E5E5">
<td valign=center>
<a href="index.html">
<font color="#004faf">Home</font></a>
| <a href="classes.html">
<font color="#004faf">All Classes</font></a>
| <a href="mainclasses.html">
<font color="#004faf">Main Classes</font></a>
| <a href="annotated.html">
<font color="#004faf">Annotated</font></a>
| <a href="groups.html">
<font color="#004faf">Grouped Classes</font></a>
| <a href="functions.html">
<font color="#004faf">Functions</font></a>
</td>
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QEvent Class Reference</h1>
<p>The QEvent class is the base class of all
event classes. Event objects contain event parameters.
<a href="#details">More...</a>
<p><tt>#include <<a href="qevent-h.html">qevent.h</a>></tt>
<p>Inherits <a href="qt.html">Qt</a>.
<p>Inherited by <a href="qtimerevent.html">QTimerEvent</a>, <a href="qmouseevent.html">QMouseEvent</a>, <a href="qwheelevent.html">QWheelEvent</a>, <a href="qtabletevent.html">QTabletEvent</a>, <a href="qkeyevent.html">QKeyEvent</a>, <a href="qfocusevent.html">QFocusEvent</a>, <a href="qpaintevent.html">QPaintEvent</a>, <a href="qmoveevent.html">QMoveEvent</a>, <a href="qresizeevent.html">QResizeEvent</a>, <a href="qcloseevent.html">QCloseEvent</a>, <a href="qicondragevent.html">QIconDragEvent</a>, <a href="qshowevent.html">QShowEvent</a>, <a href="qhideevent.html">QHideEvent</a>, <a href="qcontextmenuevent.html">QContextMenuEvent</a>, <a href="qimevent.html">QIMEvent</a>, <a href="qdropevent.html">QDropEvent</a>, <a href="qdragleaveevent.html">QDragLeaveEvent</a>, <a href="qchildevent.html">QChildEvent</a>, and <a href="qcustomevent.html">QCustomEvent</a>.
<p><a href="qevent-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li class=fn>enum <a href="#Type-enum"><b>Type</b></a> { None = 0, Timer = 1, MouseButtonPress = 2, MouseButtonRelease = 3, MouseButtonDblClick = 4, MouseMove = 5, KeyPress = 6, KeyRelease = 7, FocusIn = 8, FocusOut = 9, Enter = 10, Leave = 11, Paint = 12, Move = 13, Resize = 14, Create = 15, Destroy = 16, Show = 17, Hide = 18, Close = 19, Quit = 20, Reparent = 21, ShowMinimized = 22, ShowNormal = 23, WindowActivate = 24, WindowDeactivate = 25, ShowToParent = 26, HideToParent = 27, ShowMaximized = 28, ShowFullScreen = 29, Accel = 30, Wheel = 31, AccelAvailable = 32, CaptionChange = 33, IconChange = 34, ParentFontChange = 35, ApplicationFontChange = 36, ParentPaletteChange = 37, ApplicationPaletteChange = 38, PaletteChange = 39, Clipboard = 40, Speech = 42, SockAct = 50, AccelOverride = 51, DeferredDelete = 52, DragEnter = 60, DragMove = 61, DragLeave = 62, Drop = 63, DragResponse = 64, ChildInserted = 70, ChildRemoved = 71, LayoutHint = 72, ShowWindowRequest = 73, WindowBlocked = 74, WindowUnblocked = 75, ActivateControl = 80, DeactivateControl = 81, ContextMenu = 82, IMStart = 83, IMCompose = 84, IMEnd = 85, Accessibility = 86, TabletMove = 87, LocaleChange = 88, LanguageChange = 89, LayoutDirectionChange = 90, Style = 91, TabletPress = 92, TabletRelease = 93, OkRequest = 94, HelpRequest = 95, WindowStateChange = 96, IconDrag = 97, User = 1000, MaxUser = 65535 }</li>
<li class=fn><a href="#QEvent"><b>QEvent</b></a> ( Type type )</li>
<li class=fn>virtual <a href="#~QEvent"><b>~QEvent</b></a> ()</li>
<li class=fn>Type <a href="#type"><b>type</b></a> () const</li>
<li class=fn>bool <a href="#spontaneous"><b>spontaneous</b></a> () const</li>
</ul>
<hr><a name="details"></a><h2>Detailed Description</h2>
The QEvent class is the base class of all
event classes. Event objects contain event parameters.
<p>
<p> Qt's main event loop (<a href="qapplication.html#exec">QApplication::exec</a>()) fetches native window
system events from the event queue, translates them into QEvents
and sends the translated events to QObjects.
<p> In general, events come from the underlying window system
(<a href="#spontaneous">spontaneous</a>() returns TRUE) but it is also possible to manually
send events using <a href="qapplication.html#sendEvent">QApplication::sendEvent</a>() and
<a href="qapplication.html#postEvent">QApplication::postEvent</a>() (spontaneous() returns FALSE).
<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> The basic QEvent contains only an event type parameter.
Subclasses of QEvent contain additional parameters that describe
the particular event.
<p> <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="qapplication.html#sendEvent">QApplication::sendEvent</a>(), <a href="qapplication.html#postEvent">QApplication::postEvent</a>(), <a href="qapplication.html#processEvents">QApplication::processEvents</a>(), <a href="environment.html">Environment Classes</a>, and <a href="events.html">Event Classes</a>.
<hr><h2>Member Type Documentation</h2>
<h3 class=fn><a name="Type-enum"></a>QEvent::Type</h3>
<p> This enum type defines the valid event types in Qt. The event
types and the specialized classes for each type are these:
<ul>
<li><tt>QEvent::None</tt> - Not an event.
<li><tt>QEvent::Accessibility</tt> - Accessibility information is requested
<li><tt>QEvent::Timer</tt> - Regular timer events, <a href="qtimerevent.html">QTimerEvent</a>.
<li><tt>QEvent::MouseButtonPress</tt> - Mouse press, <a href="qmouseevent.html">QMouseEvent</a>.
<li><tt>QEvent::MouseButtonRelease</tt> - Mouse release, <a href="qmouseevent.html">QMouseEvent</a>.
<li><tt>QEvent::MouseButtonDblClick</tt> - Mouse press again, <a href="qmouseevent.html">QMouseEvent</a>.
<li><tt>QEvent::MouseMove</tt> - Mouse move, <a href="qmouseevent.html">QMouseEvent</a>.
<li><tt>QEvent::KeyPress</tt> - Key press (including Shift, for example), <a href="qkeyevent.html">QKeyEvent</a>.
<li><tt>QEvent::KeyRelease</tt> - Key release, <a href="qkeyevent.html">QKeyEvent</a>.
<li><tt>QEvent::IMStart</tt> - The start of input method composition, <a href="qimevent.html">QIMEvent</a>.
<li><tt>QEvent::IMCompose</tt> - Input method composition is taking place, <a href="qimevent.html">QIMEvent</a>.
<li><tt>QEvent::IMEnd</tt> - The end of input method composition, <a href="qimevent.html">QIMEvent</a>.
<li><tt>QEvent::FocusIn</tt> - Widget gains <a href="focus.html#keyboard-focus">keyboard focus</a>, <a href="qfocusevent.html">QFocusEvent</a>.
<li><tt>QEvent::FocusOut</tt> - Widget loses keyboard focus, <a href="qfocusevent.html">QFocusEvent</a>.
<li><tt>QEvent::Enter</tt> - Mouse enters widget's boundaries.
<li><tt>QEvent::Leave</tt> - Mouse leaves widget's boundaries.
<li><tt>QEvent::Paint</tt> - Screen update necessary, <a href="qpaintevent.html">QPaintEvent</a>.
<li><tt>QEvent::Move</tt> - Widget's position changed, <a href="qmoveevent.html">QMoveEvent</a>.
<li><tt>QEvent::Resize</tt> - Widget's size changed, <a href="qresizeevent.html">QResizeEvent</a>.
<li><tt>QEvent::Show</tt> - Widget was shown on screen, <a href="qshowevent.html">QShowEvent</a>.
<li><tt>QEvent::Hide</tt> - Widget was hidden, <a href="qhideevent.html">QHideEvent</a>.
<li><tt>QEvent::ShowToParent</tt> - A child widget has been shown.
<li><tt>QEvent::HideToParent</tt> - A child widget has been hidden.
<li><tt>QEvent::Close</tt> - Widget was closed (permanently), <a href="qcloseevent.html">QCloseEvent</a>.
<li><tt>QEvent::ShowNormal</tt> - Widget should be shown normally (obsolete).
<li><tt>QEvent::ShowMaximized</tt> - Widget should be shown maximized (obsolete).
<li><tt>QEvent::ShowMinimized</tt> - Widget should be shown minimized (obsolete).
<li><tt>QEvent::ShowFullScreen</tt> - Widget should be shown full-screen (obsolete).
<li><tt>QEvent::ShowWindowRequest</tt> - Widget's window should be shown (obsolete).
<li><tt>QEvent::DeferredDelete</tt> - The object will be deleted after it has
cleaned up.
<li><tt>QEvent::Accel</tt> - Key press in child for shortcut key handling, <a href="qkeyevent.html">QKeyEvent</a>.
<li><tt>QEvent::Wheel</tt> - Mouse wheel rolled, <a href="qwheelevent.html">QWheelEvent</a>.
<li><tt>QEvent::ContextMenu</tt> - Context popup menu, <a href="qcontextmenuevent.html">QContextMenuEvent</a>
<li><tt>QEvent::AccelOverride</tt> - Key press in child, for overriding shortcut key handling, <a href="qkeyevent.html">QKeyEvent</a>.
<li><tt>QEvent::AccelAvailable</tt> - internal.
<li><tt>QEvent::WindowActivate</tt> - Window was activated.
<li><tt>QEvent::WindowDeactivate</tt> - Window was deactivated.
<li><tt>QEvent::CaptionChange</tt> - Widget's caption changed.
<li><tt>QEvent::IconChange</tt> - Widget's icon changed.
<li><tt>QEvent::ParentFontChange</tt> - Font of the parent widget changed.
<li><tt>QEvent::ApplicationFontChange</tt> - Default application font changed.
<li><tt>QEvent::PaletteChange</tt> - Palette of the widget changed.
<li><tt>QEvent::ParentPaletteChange</tt> - Palette of the parent widget changed.
<li><tt>QEvent::ApplicationPaletteChange</tt> - Default application palette changed.
<li><tt>QEvent::Clipboard</tt> - Clipboard contents have changed.
<li><tt>QEvent::SockAct</tt> - Socket activated, used to implement <a href="qsocketnotifier.html">QSocketNotifier</a>.
<li><tt>QEvent::DragEnter</tt> - A drag-and-drop enters widget, <a href="qdragenterevent.html">QDragEnterEvent</a>.
<li><tt>QEvent::DragMove</tt> - A drag-and-drop is in progress, <a href="qdragmoveevent.html">QDragMoveEvent</a>.
<li><tt>QEvent::DragLeave</tt> - A drag-and-drop leaves widget, <a href="qdragleaveevent.html">QDragLeaveEvent</a>.
<li><tt>QEvent::Drop</tt> - A drag-and-drop is completed, <a href="qdropevent.html">QDropEvent</a>.
<li><tt>QEvent::DragResponse</tt> - Internal event used by Qt on some platforms.
<li><tt>QEvent::ChildInserted</tt> - Object gets a child, <a href="qchildevent.html">QChildEvent</a>.
<li><tt>QEvent::ChildRemoved</tt> - Object loses a child, <a href="qchildevent.html">QChildEvent</a>.
<li><tt>QEvent::LayoutHint</tt> - Widget child has changed layout properties.
<li><tt>QEvent::ActivateControl</tt> - Internal event used by Qt on some platforms.
<li><tt>QEvent::DeactivateControl</tt> - Internal event used by Qt on some platforms.
<li><tt>QEvent::LanguageChange</tt> - The application translation changed, <a href="qtranslator.html">QTranslator</a>
<li><tt>QEvent::LayoutDirectionChange</tt> - The direction of layouts changed
<li><tt>QEvent::LocaleChange</tt> - The system locale changed
<li><tt>QEvent::Quit</tt> - Reserved.
<li><tt>QEvent::Create</tt> - Reserved.
<li><tt>QEvent::Destroy</tt> - Reserved.
<li><tt>QEvent::Reparent</tt> - Reserved.
<li><tt>QEvent::Speech</tt> - Reserved for speech input.
<li><tt>QEvent::TabletMove</tt> - A Wacom Tablet Move Event.
<li><tt>QEvent::Style</tt> - Internal use only
<li><tt>QEvent::TabletPress</tt> - A Wacom Tablet Press Event
<li><tt>QEvent::TabletRelease</tt> - A Wacom Tablet Release Event
<li><tt>QEvent::OkRequest</tt> - Internal event used by Qt on some platforms.
<li><tt>QEvent::HelpRequest</tt> - Internal event used by Qt on some platforms.
<li><tt>QEvent::IconDrag</tt> - Internal event used by Qt on some platforms when proxy icon is dragged.
<li><tt>QEvent::WindowStateChange</tt> - The window's state, i.e. minimized,
maximized or full-screen, has changed. See <a href="qwidget.html#windowState">QWidget::windowState</a>().
<li><tt>QEvent::WindowBlocked</tt> - The window is modally blocked
<li><tt>QEvent::WindowUnblocked</tt> - The window leaves modal blocking
<li><tt>QEvent::User</tt> - User defined event.
<li><tt>QEvent::MaxUser</tt> - Last user event id.
</ul><p> User events should have values between User and MaxUser inclusive.
<hr><h2>Member Function Documentation</h2>
<h3 class=fn><a name="QEvent"></a>QEvent::QEvent ( <a href="qevent.html#Type-enum">Type</a> type )
</h3>
<p> Contructs an event object of type <em>type</em>.
<h3 class=fn><a name="~QEvent"></a>QEvent::~QEvent ()<tt> [virtual]</tt>
</h3>
Destroys the event. If it was <a href="qapplication.html#postEvent">posted</a>,
it will be removed from the list of events to be posted.
<h3 class=fn>bool <a name="spontaneous"></a>QEvent::spontaneous () const
</h3>
<p> Returns TRUE if the event originated outside the application, i.e.
it is a system event; otherwise returns FALSE.
<h3 class=fn><a href="qevent.html#Type-enum">Type</a> <a name="type"></a>QEvent::type () const
</h3>
<p> Returns the event type.
<!-- eof -->
<hr><p>
This file is part of the <a href="index.html">Qt toolkit</a>.
Copyright © 1995-2007
<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
<table width=100% cellspacing=0 border=0><tr>
<td>Copyright © 2007
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
<td align=right><div align=right>Qt 3.3.8</div>
</table></div></address></body>
</html>
|