Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > contrib > by-pkgid > 112b0974ad288f6cd55bf971ee6026a9 > files > 1269

libqt3-devel-3.0.2-2mdk.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- /tmp/qt-3.0-reggie-28534/qt-x11-free-3.0.2/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"><!--
h3.fn,span.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&nbsp;Classes</font></a>
 | <a href="mainclasses.html">
<font color="#004faf">Main&nbsp;Classes</font></a>
 | <a href="annotated.html">
<font color="#004faf">Annotated</font></a>
 | <a href="groups.html">
<font color="#004faf">Grouped&nbsp;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 &lt;<a href="qevent-h.html">qevent.h</a>&gt;</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="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><div class=fn>enum Type { 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, ActivateControl = 80, DeactivateControl = 81, ContextMenu = 82, IMStart = 83, IMCompose = 84, IMEnd = 85, Accessibility = 86, Tablet = 87, User = 1000, MaxUser = 65535 } &nbsp;<em>(obsolete)</em></div></li>
<li><div class=fn><a href="#QEvent"><b>QEvent</b></a> ( Type&nbsp;type )</div></li>
<li><div class=fn>Type <a href="#type"><b>type</b></a> () const</div></li>
<li><div class=fn>bool <a href="#spontaneous"><b>spontaneous</b></a> () const</div></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> The main event loop of Qt (<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> Generally, events come from the underlying window system (<a href="#spontaneous">spontaneous</a>()
returns TRUE) but it is also possible to manually send events through the
<a href="qapplication.html">QApplication</a> class 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
to 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 currently
defined event types and the specialized classes for each type are:
<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.
<li><tt>QEvent::IMCompose</tt> - Input method composition is taking place.
<li><tt>QEvent::IMEnd</tt> - The end of input method composition.
<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.
<li><tt>QEvent::ShowMaximized</tt> - Widget should be shown maximized.
<li><tt>QEvent::ShowMinimized</tt> - Widget should be shown minimized.
<li><tt>QEvent::ShowFullScreen</tt> - Widget should be shown full-screen.
<li><tt>QEvent::ShowWindowRequest</tt> - Widget's window should be shown. <b>This type is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
<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::AccelAvailable</tt> - Internal event used by Qt on some platforms.
<li><tt>QEvent::AccelOverride</tt> - Key press in child, for overriding shortcut key handling, <a href="qkeyevent.html">QKeyEvent</a>.
<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::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::Tablet</tt> - Wacom Tablet event.
<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>&nbsp;type )
</h3>

Contructs an event object of type <em>type</em>.

<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>

Returns the event type.

<!-- eof -->
<hr><p>
This file is part of the <a href="index.html">Qt toolkit</a>.
Copyright &copy; 1995-2001
<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 &copy; 2001 
<a href="http://www.trolltech.com">Trolltech</a><td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a>
<td align=right><div align=right>Qt version 3.0.2</div>
</table></div></address></body>
</html>