Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-updates > by-pkgid > 768f7d9f703884aa2562bf0a651086df > files > 361

qtbase5-doc-5.9.4-1.1.mga6.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qcoreevent.cpp -->
  <title>QEvent Class | Qt Core 5.9</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.9</td><td ><a href="qtcore-index.html">Qt Core</a></td><td ><a href="qtcore-module.html">C++ Classes</a></td><td >QEvent</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<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="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QEvent Class</h1>
<!-- $$$QEvent-brief -->
<p>The <a href="qevent.html">QEvent</a> class is the base class of all event classes. Event objects contain event parameters. <a href="#details">More...</a></p>
<!-- @@@QEvent -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QEvent&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += core</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="qchildevent.html">QChildEvent</a>, <a href="qdynamicpropertychangeevent.html">QDynamicPropertyChangeEvent</a>, <a href="qstatemachine-signalevent.html">QStateMachine::SignalEvent</a>, <a href="qstatemachine-wrappedevent.html">QStateMachine::WrappedEvent</a>, and <a href="qtimerevent.html">QTimerEvent</a></p>
</td></tr></table></div><ul>
<li><a href="qevent-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2 id="public-types">Public Types</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qevent.html#Type-enum">Type</a></b> { None, ActionAdded, ActionChanged, ActionRemoved, ..., MaxUser }</td></tr>
</table></div>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn"><b><a href="qevent.html#accepted-prop">accepted</a></b> : bool</li>
</ul>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qevent.html#QEvent">QEvent</a></b>(Type <i>type</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qevent.html#dtor.QEvent">~QEvent</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qevent.html#accept">accept</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qevent.html#ignore">ignore</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qevent.html#accepted-prop">isAccepted</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qevent.html#accepted-prop">setAccepted</a></b>(bool <i>accepted</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qevent.html#spontaneous">spontaneous</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Type </td><td class="memItemRight bottomAlign"><b><a href="qevent.html#type">type</a></b>() const</td></tr>
</table></div>
<a name="static-public-members"></a>
<h2 id="static-public-members">Static Public Members</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qevent.html#registerEventType">registerEventType</a></b>(int <i>hint</i> = -1)</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QEvent-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qevent.html">QEvent</a> class is the base class of all event classes. Event objects contain event parameters.</p>
<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>
<p>In general, events come from the underlying window system (<a href="qevent.html#spontaneous">spontaneous</a>() returns <code>true</code>), 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 <code>false</code>).</p>
<p><a href="qobject.html">QObjects</a> 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="../qtwidgets/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="../qtwidgets/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>
<p>The basic <a href="qevent.html">QEvent</a> 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>
<p>Subclasses of <a href="qevent.html">QEvent</a> contain additional parameters that describe the particular event.</p>
</div>
<p><b>See also </b><a href="qobject.html#event">QObject::event</a>(), <a href="qobject.html#installEventFilter">QObject::installEventFilter</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>
<!-- @@@QEvent -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$Type$$$None$$$Timer$$$MouseButtonPress$$$MouseButtonRelease$$$MouseButtonDblClick$$$MouseMove$$$KeyPress$$$KeyRelease$$$FocusIn$$$FocusOut$$$FocusAboutToChange$$$Enter$$$Leave$$$Paint$$$Move$$$Resize$$$Create$$$Destroy$$$Show$$$Hide$$$Close$$$Quit$$$ParentChange$$$ParentAboutToChange$$$ThreadChange$$$WindowActivate$$$WindowDeactivate$$$ShowToParent$$$HideToParent$$$Wheel$$$WindowTitleChange$$$WindowIconChange$$$ApplicationWindowIconChange$$$ApplicationFontChange$$$ApplicationLayoutDirectionChange$$$ApplicationPaletteChange$$$PaletteChange$$$Clipboard$$$Speech$$$MetaCall$$$SockAct$$$WinEventAct$$$DeferredDelete$$$DragEnter$$$DragMove$$$DragLeave$$$Drop$$$DragResponse$$$ChildAdded$$$ChildPolished$$$ChildRemoved$$$ShowWindowRequest$$$PolishRequest$$$Polish$$$LayoutRequest$$$UpdateRequest$$$UpdateLater$$$EmbeddingControl$$$ActivateControl$$$DeactivateControl$$$ContextMenu$$$InputMethod$$$TabletMove$$$LocaleChange$$$LanguageChange$$$LayoutDirectionChange$$$Style$$$TabletPress$$$TabletRelease$$$OkRequest$$$HelpRequest$$$IconDrag$$$FontChange$$$EnabledChange$$$ActivationChange$$$StyleChange$$$IconTextChange$$$ModifiedChange$$$MouseTrackingChange$$$WindowBlocked$$$WindowUnblocked$$$WindowStateChange$$$ReadOnlyChange$$$ToolTip$$$WhatsThis$$$StatusTip$$$ActionChanged$$$ActionAdded$$$ActionRemoved$$$FileOpen$$$Shortcut$$$ShortcutOverride$$$WhatsThisClicked$$$ToolBarChange$$$ApplicationActivate$$$ApplicationActivated$$$ApplicationDeactivate$$$ApplicationDeactivated$$$QueryWhatsThis$$$EnterWhatsThisMode$$$LeaveWhatsThisMode$$$ZOrderChange$$$HoverEnter$$$HoverLeave$$$HoverMove$$$EnterEditFocus$$$LeaveEditFocus$$$AcceptDropsChange$$$ZeroTimerEvent$$$GraphicsSceneMouseMove$$$GraphicsSceneMousePress$$$GraphicsSceneMouseRelease$$$GraphicsSceneMouseDoubleClick$$$GraphicsSceneContextMenu$$$GraphicsSceneHoverEnter$$$GraphicsSceneHoverMove$$$GraphicsSceneHoverLeave$$$GraphicsSceneHelp$$$GraphicsSceneDragEnter$$$GraphicsSceneDragMove$$$GraphicsSceneDragLeave$$$GraphicsSceneDrop$$$GraphicsSceneWheel$$$KeyboardLayoutChange$$$DynamicPropertyChange$$$TabletEnterProximity$$$TabletLeaveProximity$$$NonClientAreaMouseMove$$$NonClientAreaMouseButtonPress$$$NonClientAreaMouseButtonRelease$$$NonClientAreaMouseButtonDblClick$$$MacSizeChange$$$ContentsRectChange$$$MacGLWindowChange$$$FutureCallOut$$$GraphicsSceneResize$$$GraphicsSceneMove$$$CursorChange$$$ToolTipChange$$$NetworkReplyUpdated$$$GrabMouse$$$UngrabMouse$$$GrabKeyboard$$$UngrabKeyboard$$$MacGLClearDrawable$$$StateMachineSignal$$$StateMachineWrapped$$$TouchBegin$$$TouchUpdate$$$TouchEnd$$$NativeGesture$$$RequestSoftwareInputPanel$$$CloseSoftwareInputPanel$$$WinIdChange$$$Gesture$$$GestureOverride$$$ScrollPrepare$$$Scroll$$$Expose$$$InputMethodQuery$$$OrientationChange$$$TouchCancel$$$ThemeChange$$$SockClose$$$PlatformPanel$$$StyleAnimationUpdate$$$ApplicationStateChange$$$WindowChangeInternal$$$ScreenChangeInternal$$$PlatformSurface$$$Pointer$$$TabletTrackingChange$$$User$$$MaxUser -->
<h3 class="fn" id="Type-enum"><a name="Type-enum"></a>enum QEvent::<span class="name">Type</span></h3>
<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>
<div class="table"><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"><code>QEvent::None</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">Not an event.</td></tr>
<tr><td class="topAlign"><code>QEvent::ActionAdded</code></td><td class="topAlign tblval"><code>114</code></td><td class="topAlign">A new action has been added (<a href="../qtgui/qactionevent.html">QActionEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::ActionChanged</code></td><td class="topAlign tblval"><code>113</code></td><td class="topAlign">An action has been changed (<a href="../qtgui/qactionevent.html">QActionEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::ActionRemoved</code></td><td class="topAlign tblval"><code>115</code></td><td class="topAlign">An action has been removed (<a href="../qtgui/qactionevent.html">QActionEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::ActivationChange</code></td><td class="topAlign tblval"><code>99</code></td><td class="topAlign">A widget's top-level window activation state has changed.</td></tr>
<tr><td class="topAlign"><code>QEvent::ApplicationActivate</code></td><td class="topAlign tblval"><code>121</code></td><td class="topAlign">This enum has been deprecated. Use ApplicationStateChange instead.</td></tr>
<tr><td class="topAlign"><code>QEvent::ApplicationActivated</code></td><td class="topAlign tblval"><code>ApplicationActivate</code></td><td class="topAlign">This enum has been deprecated. Use ApplicationStateChange instead.</td></tr>
<tr><td class="topAlign"><code>QEvent::ApplicationDeactivate</code></td><td class="topAlign tblval"><code>122</code></td><td class="topAlign">This enum has been deprecated. Use ApplicationStateChange instead.</td></tr>
<tr><td class="topAlign"><code>QEvent::ApplicationFontChange</code></td><td class="topAlign tblval"><code>36</code></td><td class="topAlign">The default application font has changed.</td></tr>
<tr><td class="topAlign"><code>QEvent::ApplicationLayoutDirectionChange</code></td><td class="topAlign tblval"><code>37</code></td><td class="topAlign">The default application layout direction has changed.</td></tr>
<tr><td class="topAlign"><code>QEvent::ApplicationPaletteChange</code></td><td class="topAlign tblval"><code>38</code></td><td class="topAlign">The default application palette has changed.</td></tr>
<tr><td class="topAlign"><code>QEvent::ApplicationStateChange</code></td><td class="topAlign tblval"><code>214</code></td><td class="topAlign">The state of the application has changed.</td></tr>
<tr><td class="topAlign"><code>QEvent::ApplicationWindowIconChange</code></td><td class="topAlign tblval"><code>35</code></td><td class="topAlign">The application's icon has changed.</td></tr>
<tr><td class="topAlign"><code>QEvent::ChildAdded</code></td><td class="topAlign tblval"><code>68</code></td><td class="topAlign">An object gets a child (<a href="qchildevent.html">QChildEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::ChildPolished</code></td><td class="topAlign tblval"><code>69</code></td><td class="topAlign">A widget child gets polished (<a href="qchildevent.html">QChildEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::ChildRemoved</code></td><td class="topAlign tblval"><code>71</code></td><td class="topAlign">An object loses a child (<a href="qchildevent.html">QChildEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::Clipboard</code></td><td class="topAlign tblval"><code>40</code></td><td class="topAlign">The clipboard contents have changed.</td></tr>
<tr><td class="topAlign"><code>QEvent::Close</code></td><td class="topAlign tblval"><code>19</code></td><td class="topAlign">Widget was closed (<a href="../qtgui/qcloseevent.html">QCloseEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::CloseSoftwareInputPanel</code></td><td class="topAlign tblval"><code>200</code></td><td class="topAlign">A widget wants to close the software input panel (SIP).</td></tr>
<tr><td class="topAlign"><code>QEvent::ContentsRectChange</code></td><td class="topAlign tblval"><code>178</code></td><td class="topAlign">The margins of the widget's content rect changed.</td></tr>
<tr><td class="topAlign"><code>QEvent::ContextMenu</code></td><td class="topAlign tblval"><code>82</code></td><td class="topAlign">Context popup menu (<a href="../qtgui/qcontextmenuevent.html">QContextMenuEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::CursorChange</code></td><td class="topAlign tblval"><code>183</code></td><td class="topAlign">The widget's cursor has changed.</td></tr>
<tr><td class="topAlign"><code>QEvent::DeferredDelete</code></td><td class="topAlign tblval"><code>52</code></td><td class="topAlign">The object will be deleted after it has cleaned up (QDeferredDeleteEvent)</td></tr>
<tr><td class="topAlign"><code>QEvent::DragEnter</code></td><td class="topAlign tblval"><code>60</code></td><td class="topAlign">The cursor enters a widget during a drag and drop operation (<a href="../qtgui/qdragenterevent.html">QDragEnterEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::DragLeave</code></td><td class="topAlign tblval"><code>62</code></td><td class="topAlign">The cursor leaves a widget during a drag and drop operation (<a href="../qtgui/qdragleaveevent.html">QDragLeaveEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::DragMove</code></td><td class="topAlign tblval"><code>61</code></td><td class="topAlign">A drag and drop operation is in progress (<a href="../qtgui/qdragmoveevent.html">QDragMoveEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::Drop</code></td><td class="topAlign tblval"><code>63</code></td><td class="topAlign">A drag and drop operation is completed (<a href="../qtgui/qdropevent.html">QDropEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::DynamicPropertyChange</code></td><td class="topAlign tblval"><code>170</code></td><td class="topAlign">A dynamic property was added, changed, or removed from the object.</td></tr>
<tr><td class="topAlign"><code>QEvent::EnabledChange</code></td><td class="topAlign tblval"><code>98</code></td><td class="topAlign">Widget's enabled state has changed.</td></tr>
<tr><td class="topAlign"><code>QEvent::Enter</code></td><td class="topAlign tblval"><code>10</code></td><td class="topAlign">Mouse enters widget's boundaries (<a href="../qtgui/qenterevent.html">QEnterEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::EnterEditFocus</code></td><td class="topAlign tblval"><code>150</code></td><td class="topAlign">An editor widget gains focus for editing. <code>QT_KEYPAD_NAVIGATION</code> must be defined.</td></tr>
<tr><td class="topAlign"><code>QEvent::EnterWhatsThisMode</code></td><td class="topAlign tblval"><code>124</code></td><td class="topAlign">Send to toplevel widgets when the application enters &quot;What's This?&quot; mode.</td></tr>
<tr><td class="topAlign"><code>QEvent::Expose</code></td><td class="topAlign tblval"><code>206</code></td><td class="topAlign">Sent to a window when its on-screen contents are invalidated and need to be flushed from the backing store.</td></tr>
<tr><td class="topAlign"><code>QEvent::FileOpen</code></td><td class="topAlign tblval"><code>116</code></td><td class="topAlign">File open request (<a href="../qtgui/qfileopenevent.html">QFileOpenEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::FocusIn</code></td><td class="topAlign tblval"><code>8</code></td><td class="topAlign">Widget or Window gains keyboard focus (<a href="../qtgui/qfocusevent.html">QFocusEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::FocusOut</code></td><td class="topAlign tblval"><code>9</code></td><td class="topAlign">Widget or Window loses keyboard focus (<a href="../qtgui/qfocusevent.html">QFocusEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::FocusAboutToChange</code></td><td class="topAlign tblval"><code>23</code></td><td class="topAlign">Widget or Window focus is about to change (<a href="../qtgui/qfocusevent.html">QFocusEvent</a>)</td></tr>
<tr><td class="topAlign"><code>QEvent::FontChange</code></td><td class="topAlign tblval"><code>97</code></td><td class="topAlign">Widget's font has changed.</td></tr>
<tr><td class="topAlign"><code>QEvent::Gesture</code></td><td class="topAlign tblval"><code>198</code></td><td class="topAlign">A gesture was triggered (<a href="../qtwidgets/qgestureevent.html">QGestureEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::GestureOverride</code></td><td class="topAlign tblval"><code>202</code></td><td class="topAlign">A gesture override was triggered (<a href="../qtwidgets/qgestureevent.html">QGestureEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::GrabKeyboard</code></td><td class="topAlign tblval"><code>188</code></td><td class="topAlign">Item gains keyboard grab (<a href="../qtwidgets/qgraphicsitem.html">QGraphicsItem</a> only).</td></tr>
<tr><td class="topAlign"><code>QEvent::GrabMouse</code></td><td class="topAlign tblval"><code>186</code></td><td class="topAlign">Item gains mouse grab (<a href="../qtwidgets/qgraphicsitem.html">QGraphicsItem</a> only).</td></tr>
<tr><td class="topAlign"><code>QEvent::GraphicsSceneContextMenu</code></td><td class="topAlign tblval"><code>159</code></td><td class="topAlign">Context popup menu over a graphics scene (<a href="../qtwidgets/qgraphicsscenecontextmenuevent.html">QGraphicsSceneContextMenuEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::GraphicsSceneDragEnter</code></td><td class="topAlign tblval"><code>164</code></td><td class="topAlign">The cursor enters a graphics scene during a drag and drop operation (<a href="../qtwidgets/qgraphicsscenedragdropevent.html">QGraphicsSceneDragDropEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::GraphicsSceneDragLeave</code></td><td class="topAlign tblval"><code>166</code></td><td class="topAlign">The cursor leaves a graphics scene during a drag and drop operation (<a href="../qtwidgets/qgraphicsscenedragdropevent.html">QGraphicsSceneDragDropEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::GraphicsSceneDragMove</code></td><td class="topAlign tblval"><code>165</code></td><td class="topAlign">A drag and drop operation is in progress over a scene (<a href="../qtwidgets/qgraphicsscenedragdropevent.html">QGraphicsSceneDragDropEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::GraphicsSceneDrop</code></td><td class="topAlign tblval"><code>167</code></td><td class="topAlign">A drag and drop operation is completed over a scene (<a href="../qtwidgets/qgraphicsscenedragdropevent.html">QGraphicsSceneDragDropEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::GraphicsSceneHelp</code></td><td class="topAlign tblval"><code>163</code></td><td class="topAlign">The user requests help for a graphics scene (<a href="../qtgui/qhelpevent.html">QHelpEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::GraphicsSceneHoverEnter</code></td><td class="topAlign tblval"><code>160</code></td><td class="topAlign">The mouse cursor enters a hover item in a graphics scene (<a href="../qtwidgets/qgraphicsscenehoverevent.html">QGraphicsSceneHoverEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::GraphicsSceneHoverLeave</code></td><td class="topAlign tblval"><code>162</code></td><td class="topAlign">The mouse cursor leaves a hover item in a graphics scene (<a href="../qtwidgets/qgraphicsscenehoverevent.html">QGraphicsSceneHoverEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::GraphicsSceneHoverMove</code></td><td class="topAlign tblval"><code>161</code></td><td class="topAlign">The mouse cursor moves inside a hover item in a graphics scene (<a href="../qtwidgets/qgraphicsscenehoverevent.html">QGraphicsSceneHoverEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::GraphicsSceneMouseDoubleClick</code></td><td class="topAlign tblval"><code>158</code></td><td class="topAlign">Mouse press again (double click) in a graphics scene (<a href="../qtwidgets/qgraphicsscenemouseevent.html">QGraphicsSceneMouseEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::GraphicsSceneMouseMove</code></td><td class="topAlign tblval"><code>155</code></td><td class="topAlign">Move mouse in a graphics scene (<a href="../qtwidgets/qgraphicsscenemouseevent.html">QGraphicsSceneMouseEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::GraphicsSceneMousePress</code></td><td class="topAlign tblval"><code>156</code></td><td class="topAlign">Mouse press in a graphics scene (<a href="../qtwidgets/qgraphicsscenemouseevent.html">QGraphicsSceneMouseEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::GraphicsSceneMouseRelease</code></td><td class="topAlign tblval"><code>157</code></td><td class="topAlign">Mouse release in a graphics scene (<a href="../qtwidgets/qgraphicsscenemouseevent.html">QGraphicsSceneMouseEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::GraphicsSceneMove</code></td><td class="topAlign tblval"><code>182</code></td><td class="topAlign">Widget was moved (<a href="../qtwidgets/qgraphicsscenemoveevent.html">QGraphicsSceneMoveEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::GraphicsSceneResize</code></td><td class="topAlign tblval"><code>181</code></td><td class="topAlign">Widget was resized (<a href="../qtwidgets/qgraphicssceneresizeevent.html">QGraphicsSceneResizeEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::GraphicsSceneWheel</code></td><td class="topAlign tblval"><code>168</code></td><td class="topAlign">Mouse wheel rolled in a graphics scene (<a href="../qtwidgets/qgraphicsscenewheelevent.html">QGraphicsSceneWheelEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::Hide</code></td><td class="topAlign tblval"><code>18</code></td><td class="topAlign">Widget was hidden (<a href="../qtgui/qhideevent.html">QHideEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::HideToParent</code></td><td class="topAlign tblval"><code>27</code></td><td class="topAlign">A child widget has been hidden.</td></tr>
<tr><td class="topAlign"><code>QEvent::HoverEnter</code></td><td class="topAlign tblval"><code>127</code></td><td class="topAlign">The mouse cursor enters a hover widget (<a href="../qtgui/qhoverevent.html">QHoverEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::HoverLeave</code></td><td class="topAlign tblval"><code>128</code></td><td class="topAlign">The mouse cursor leaves a hover widget (<a href="../qtgui/qhoverevent.html">QHoverEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::HoverMove</code></td><td class="topAlign tblval"><code>129</code></td><td class="topAlign">The mouse cursor moves inside a hover widget (<a href="../qtgui/qhoverevent.html">QHoverEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::IconDrag</code></td><td class="topAlign tblval"><code>96</code></td><td class="topAlign">The main icon of a window has been dragged away (<a href="../qtgui/qicondragevent.html">QIconDragEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::IconTextChange</code></td><td class="topAlign tblval"><code>101</code></td><td class="topAlign">Widget's icon text has been changed. (Deprecated)</td></tr>
<tr><td class="topAlign"><code>QEvent::InputMethod</code></td><td class="topAlign tblval"><code>83</code></td><td class="topAlign">An input method is being used (<a href="../qtgui/qinputmethodevent.html">QInputMethodEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::InputMethodQuery</code></td><td class="topAlign tblval"><code>207</code></td><td class="topAlign">A input method query event (<a href="../qtgui/qinputmethodqueryevent.html">QInputMethodQueryEvent</a>)</td></tr>
<tr><td class="topAlign"><code>QEvent::KeyboardLayoutChange</code></td><td class="topAlign tblval"><code>169</code></td><td class="topAlign">The keyboard layout has changed.</td></tr>
<tr><td class="topAlign"><code>QEvent::KeyPress</code></td><td class="topAlign tblval"><code>6</code></td><td class="topAlign">Key press (<a href="../qtgui/qkeyevent.html">QKeyEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::KeyRelease</code></td><td class="topAlign tblval"><code>7</code></td><td class="topAlign">Key release (<a href="../qtgui/qkeyevent.html">QKeyEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::LanguageChange</code></td><td class="topAlign tblval"><code>89</code></td><td class="topAlign">The application translation changed.</td></tr>
<tr><td class="topAlign"><code>QEvent::LayoutDirectionChange</code></td><td class="topAlign tblval"><code>90</code></td><td class="topAlign">The direction of layouts changed.</td></tr>
<tr><td class="topAlign"><code>QEvent::LayoutRequest</code></td><td class="topAlign tblval"><code>76</code></td><td class="topAlign">Widget layout needs to be redone.</td></tr>
<tr><td class="topAlign"><code>QEvent::Leave</code></td><td class="topAlign tblval"><code>11</code></td><td class="topAlign">Mouse leaves widget's boundaries.</td></tr>
<tr><td class="topAlign"><code>QEvent::LeaveEditFocus</code></td><td class="topAlign tblval"><code>151</code></td><td class="topAlign">An editor widget loses focus for editing. QT_KEYPAD_NAVIGATION must be defined.</td></tr>
<tr><td class="topAlign"><code>QEvent::LeaveWhatsThisMode</code></td><td class="topAlign tblval"><code>125</code></td><td class="topAlign">Send to toplevel widgets when the application leaves &quot;What's This?&quot; mode.</td></tr>
<tr><td class="topAlign"><code>QEvent::LocaleChange</code></td><td class="topAlign tblval"><code>88</code></td><td class="topAlign">The system locale has changed.</td></tr>
<tr><td class="topAlign"><code>QEvent::NonClientAreaMouseButtonDblClick</code></td><td class="topAlign tblval"><code>176</code></td><td class="topAlign">A mouse double click occurred outside the client area (<a href="../qtgui/qmouseevent.html">QMouseEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::NonClientAreaMouseButtonPress</code></td><td class="topAlign tblval"><code>174</code></td><td class="topAlign">A mouse button press occurred outside the client area (<a href="../qtgui/qmouseevent.html">QMouseEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::NonClientAreaMouseButtonRelease</code></td><td class="topAlign tblval"><code>175</code></td><td class="topAlign">A mouse button release occurred outside the client area (<a href="../qtgui/qmouseevent.html">QMouseEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::NonClientAreaMouseMove</code></td><td class="topAlign tblval"><code>173</code></td><td class="topAlign">A mouse move occurred outside the client area (<a href="../qtgui/qmouseevent.html">QMouseEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::MacSizeChange</code></td><td class="topAlign tblval"><code>177</code></td><td class="topAlign">The user changed his widget sizes (macOS only).</td></tr>
<tr><td class="topAlign"><code>QEvent::MetaCall</code></td><td class="topAlign tblval"><code>43</code></td><td class="topAlign">An asynchronous method invocation via <a href="qmetaobject.html#invokeMethod">QMetaObject::invokeMethod</a>().</td></tr>
<tr><td class="topAlign"><code>QEvent::ModifiedChange</code></td><td class="topAlign tblval"><code>102</code></td><td class="topAlign">Widgets modification state has been changed.</td></tr>
<tr><td class="topAlign"><code>QEvent::MouseButtonDblClick</code></td><td class="topAlign tblval"><code>4</code></td><td class="topAlign">Mouse press again (<a href="../qtgui/qmouseevent.html">QMouseEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::MouseButtonPress</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">Mouse press (<a href="../qtgui/qmouseevent.html">QMouseEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::MouseButtonRelease</code></td><td class="topAlign tblval"><code>3</code></td><td class="topAlign">Mouse release (<a href="../qtgui/qmouseevent.html">QMouseEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::MouseMove</code></td><td class="topAlign tblval"><code>5</code></td><td class="topAlign">Mouse move (<a href="../qtgui/qmouseevent.html">QMouseEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::MouseTrackingChange</code></td><td class="topAlign tblval"><code>109</code></td><td class="topAlign">The mouse tracking state has changed.</td></tr>
<tr><td class="topAlign"><code>QEvent::Move</code></td><td class="topAlign tblval"><code>13</code></td><td class="topAlign">Widget's position changed (<a href="../qtgui/qmoveevent.html">QMoveEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::NativeGesture</code></td><td class="topAlign tblval"><code>197</code></td><td class="topAlign">The system has detected a gesture (<a href="../qtgui/qnativegestureevent.html">QNativeGestureEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::OrientationChange</code></td><td class="topAlign tblval"><code>208</code></td><td class="topAlign">The screens orientation has changes (QScreenOrientationChangeEvent).</td></tr>
<tr><td class="topAlign"><code>QEvent::Paint</code></td><td class="topAlign tblval"><code>12</code></td><td class="topAlign">Screen update necessary (<a href="../qtgui/qpaintevent.html">QPaintEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::PaletteChange</code></td><td class="topAlign tblval"><code>39</code></td><td class="topAlign">Palette of the widget changed.</td></tr>
<tr><td class="topAlign"><code>QEvent::ParentAboutToChange</code></td><td class="topAlign tblval"><code>131</code></td><td class="topAlign">The widget parent is about to change.</td></tr>
<tr><td class="topAlign"><code>QEvent::ParentChange</code></td><td class="topAlign tblval"><code>21</code></td><td class="topAlign">The widget parent has changed.</td></tr>
<tr><td class="topAlign"><code>QEvent::PlatformPanel</code></td><td class="topAlign tblval"><code>212</code></td><td class="topAlign">A platform specific panel has been requested.</td></tr>
<tr><td class="topAlign"><code>QEvent::PlatformSurface</code></td><td class="topAlign tblval"><code>217</code></td><td class="topAlign">A native platform surface has been created or is about to be destroyed (<a href="../qtgui/qplatformsurfaceevent.html">QPlatformSurfaceEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::Polish</code></td><td class="topAlign tblval"><code>75</code></td><td class="topAlign">The widget is polished.</td></tr>
<tr><td class="topAlign"><code>QEvent::PolishRequest</code></td><td class="topAlign tblval"><code>74</code></td><td class="topAlign">The widget should be polished.</td></tr>
<tr><td class="topAlign"><code>QEvent::QueryWhatsThis</code></td><td class="topAlign tblval"><code>123</code></td><td class="topAlign">The widget should accept the event if it has &quot;What's This?&quot; help.</td></tr>
<tr><td class="topAlign"><code>QEvent::ReadOnlyChange</code></td><td class="topAlign tblval"><code>106</code></td><td class="topAlign">Widget's read-only state has changed (since Qt 5.4).</td></tr>
<tr><td class="topAlign"><code>QEvent::RequestSoftwareInputPanel</code></td><td class="topAlign tblval"><code>199</code></td><td class="topAlign">A widget wants to open a software input panel (SIP).</td></tr>
<tr><td class="topAlign"><code>QEvent::Resize</code></td><td class="topAlign tblval"><code>14</code></td><td class="topAlign">Widget's size changed (<a href="../qtgui/qresizeevent.html">QResizeEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::ScrollPrepare</code></td><td class="topAlign tblval"><code>204</code></td><td class="topAlign">The object needs to fill in its geometry information (<a href="../qtgui/qscrollprepareevent.html">QScrollPrepareEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::Scroll</code></td><td class="topAlign tblval"><code>205</code></td><td class="topAlign">The object needs to scroll to the supplied position (<a href="../qtgui/qscrollevent.html">QScrollEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::Shortcut</code></td><td class="topAlign tblval"><code>117</code></td><td class="topAlign">Key press in child for shortcut key handling (<a href="../qtgui/qshortcutevent.html">QShortcutEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::ShortcutOverride</code></td><td class="topAlign tblval"><code>51</code></td><td class="topAlign">Key press in child, for overriding shortcut key handling (<a href="../qtgui/qkeyevent.html">QKeyEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::Show</code></td><td class="topAlign tblval"><code>17</code></td><td class="topAlign">Widget was shown on screen (<a href="../qtgui/qshowevent.html">QShowEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::ShowToParent</code></td><td class="topAlign tblval"><code>26</code></td><td class="topAlign">A child widget has been shown.</td></tr>
<tr><td class="topAlign"><code>QEvent::SockAct</code></td><td class="topAlign tblval"><code>50</code></td><td class="topAlign">Socket activated, used to implement <a href="qsocketnotifier.html">QSocketNotifier</a>.</td></tr>
<tr><td class="topAlign"><code>QEvent::StateMachineSignal</code></td><td class="topAlign tblval"><code>192</code></td><td class="topAlign">A signal delivered to a state machine (<a href="qstatemachine-signalevent.html">QStateMachine::SignalEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::StateMachineWrapped</code></td><td class="topAlign tblval"><code>193</code></td><td class="topAlign">The event is a wrapper for, i.e&#x2e;, contains, another event (<a href="qstatemachine-wrappedevent.html">QStateMachine::WrappedEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::StatusTip</code></td><td class="topAlign tblval"><code>112</code></td><td class="topAlign">A status tip is requested (<a href="../qtgui/qstatustipevent.html">QStatusTipEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::StyleChange</code></td><td class="topAlign tblval"><code>100</code></td><td class="topAlign">Widget's style has been changed.</td></tr>
<tr><td class="topAlign"><code>QEvent::TabletMove</code></td><td class="topAlign tblval"><code>87</code></td><td class="topAlign">Wacom tablet move (<a href="../qtgui/qtabletevent.html">QTabletEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::TabletPress</code></td><td class="topAlign tblval"><code>92</code></td><td class="topAlign">Wacom tablet press (<a href="../qtgui/qtabletevent.html">QTabletEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::TabletRelease</code></td><td class="topAlign tblval"><code>93</code></td><td class="topAlign">Wacom tablet release (<a href="../qtgui/qtabletevent.html">QTabletEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::TabletEnterProximity</code></td><td class="topAlign tblval"><code>171</code></td><td class="topAlign">Wacom tablet enter proximity event (<a href="../qtgui/qtabletevent.html">QTabletEvent</a>), sent to <a href="../qtwidgets/qapplication.html">QApplication</a>.</td></tr>
<tr><td class="topAlign"><code>QEvent::TabletLeaveProximity</code></td><td class="topAlign tblval"><code>172</code></td><td class="topAlign">Wacom tablet leave proximity event (<a href="../qtgui/qtabletevent.html">QTabletEvent</a>), sent to <a href="../qtwidgets/qapplication.html">QApplication</a>.</td></tr>
<tr><td class="topAlign"><code>QEvent::TabletTrackingChange</code></td><td class="topAlign tblval"><code>219</code></td><td class="topAlign">The Wacom tablet tracking state has changed (since Qt 5.9).</td></tr>
<tr><td class="topAlign"><code>QEvent::ThreadChange</code></td><td class="topAlign tblval"><code>22</code></td><td class="topAlign">The object is moved to another thread. This is the last event sent to this object in the previous thread. See <a href="qobject.html#moveToThread">QObject::moveToThread</a>().</td></tr>
<tr><td class="topAlign"><code>QEvent::Timer</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">Regular timer events (<a href="qtimerevent.html">QTimerEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::ToolBarChange</code></td><td class="topAlign tblval"><code>120</code></td><td class="topAlign">The toolbar button is toggled on macOS.</td></tr>
<tr><td class="topAlign"><code>QEvent::ToolTip</code></td><td class="topAlign tblval"><code>110</code></td><td class="topAlign">A tooltip was requested (<a href="../qtgui/qhelpevent.html">QHelpEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::ToolTipChange</code></td><td class="topAlign tblval"><code>184</code></td><td class="topAlign">The widget's tooltip has changed.</td></tr>
<tr><td class="topAlign"><code>QEvent::TouchBegin</code></td><td class="topAlign tblval"><code>194</code></td><td class="topAlign">Beginning of a sequence of touch-screen or track-pad events (<a href="../qtgui/qtouchevent.html">QTouchEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::TouchCancel</code></td><td class="topAlign tblval"><code>209</code></td><td class="topAlign">Cancellation of touch-event sequence (<a href="../qtgui/qtouchevent.html">QTouchEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::TouchEnd</code></td><td class="topAlign tblval"><code>196</code></td><td class="topAlign">End of touch-event sequence (<a href="../qtgui/qtouchevent.html">QTouchEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::TouchUpdate</code></td><td class="topAlign tblval"><code>195</code></td><td class="topAlign">Touch-screen event (<a href="../qtgui/qtouchevent.html">QTouchEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::UngrabKeyboard</code></td><td class="topAlign tblval"><code>189</code></td><td class="topAlign">Item loses keyboard grab (<a href="../qtwidgets/qgraphicsitem.html">QGraphicsItem</a> only).</td></tr>
<tr><td class="topAlign"><code>QEvent::UngrabMouse</code></td><td class="topAlign tblval"><code>187</code></td><td class="topAlign">Item loses mouse grab (<a href="../qtwidgets/qgraphicsitem.html">QGraphicsItem</a>, QQuickItem).</td></tr>
<tr><td class="topAlign"><code>QEvent::UpdateLater</code></td><td class="topAlign tblval"><code>78</code></td><td class="topAlign">The widget should be queued to be repainted at a later time.</td></tr>
<tr><td class="topAlign"><code>QEvent::UpdateRequest</code></td><td class="topAlign tblval"><code>77</code></td><td class="topAlign">The widget should be repainted.</td></tr>
<tr><td class="topAlign"><code>QEvent::WhatsThis</code></td><td class="topAlign tblval"><code>111</code></td><td class="topAlign">The widget should reveal &quot;What's This?&quot; help (<a href="../qtgui/qhelpevent.html">QHelpEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::WhatsThisClicked</code></td><td class="topAlign tblval"><code>118</code></td><td class="topAlign">A link in a widget's &quot;What's This?&quot; help was clicked.</td></tr>
<tr><td class="topAlign"><code>QEvent::Wheel</code></td><td class="topAlign tblval"><code>31</code></td><td class="topAlign">Mouse wheel rolled (<a href="../qtgui/qwheelevent.html">QWheelEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::WinEventAct</code></td><td class="topAlign tblval"><code>132</code></td><td class="topAlign">A Windows-specific activation event has occurred.</td></tr>
<tr><td class="topAlign"><code>QEvent::WindowActivate</code></td><td class="topAlign tblval"><code>24</code></td><td class="topAlign">Window was activated.</td></tr>
<tr><td class="topAlign"><code>QEvent::WindowBlocked</code></td><td class="topAlign tblval"><code>103</code></td><td class="topAlign">The window is blocked by a modal dialog.</td></tr>
<tr><td class="topAlign"><code>QEvent::WindowDeactivate</code></td><td class="topAlign tblval"><code>25</code></td><td class="topAlign">Window was deactivated.</td></tr>
<tr><td class="topAlign"><code>QEvent::WindowIconChange</code></td><td class="topAlign tblval"><code>34</code></td><td class="topAlign">The window's icon has changed.</td></tr>
<tr><td class="topAlign"><code>QEvent::WindowStateChange</code></td><td class="topAlign tblval"><code>105</code></td><td class="topAlign">The <a href="../qtgui/qwindow.html#windowState">window's state</a> (minimized, maximized or full-screen) has changed (<a href="../qtgui/qwindowstatechangeevent.html">QWindowStateChangeEvent</a>).</td></tr>
<tr><td class="topAlign"><code>QEvent::WindowTitleChange</code></td><td class="topAlign tblval"><code>33</code></td><td class="topAlign">The window title has changed.</td></tr>
<tr><td class="topAlign"><code>QEvent::WindowUnblocked</code></td><td class="topAlign tblval"><code>104</code></td><td class="topAlign">The window is unblocked after a modal dialog exited.</td></tr>
<tr><td class="topAlign"><code>QEvent::WinIdChange</code></td><td class="topAlign tblval"><code>203</code></td><td class="topAlign">The window system identifer for this native widget has changed.</td></tr>
<tr><td class="topAlign"><code>QEvent::ZOrderChange</code></td><td class="topAlign tblval"><code>126</code></td><td class="topAlign">The widget's z-order has changed. This event is never sent to top level windows.</td></tr>
</table></div>
<p>User events should have values between <code>User</code> and <code>MaxUser</code>:</p>
<div class="table"><table class="valuelist"><tr valign="top" class="even"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>QEvent::User</code></td><td class="topAlign tblval"><code>1000</code></td><td class="topAlign">User-defined event.</td></tr>
<tr><td class="topAlign"><code>QEvent::MaxUser</code></td><td class="topAlign tblval"><code>65535</code></td><td class="topAlign">Last user event ID.</td></tr>
</table></div>
<p>For convenience, you can use the <a href="qevent.html#registerEventType">registerEventType</a>() function to register and reserve a custom event type for your application. Doing so will allow you to avoid accidentally re-using a custom event type already in use elsewhere in your application.</p>
<!-- @@@Type -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$accepted-prop$$$isAccepted$$$setAcceptedbool -->
<h3 class="fn" id="accepted-prop"><a name="accepted-prop"></a><span class="name">accepted</span> : <span class="type">bool</span></h3>
<p>the accept flag of the event object</p>
<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>
<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>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isAccepted</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAccepted</b></span>(bool <i>accepted</i>)</td></tr>
</table></div>
<!-- @@@accepted -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QEvent[overload1]$$$QEventType -->
<h3 class="fn" id="QEvent"><a name="QEvent"></a>QEvent::<span class="name">QEvent</span>(<span class="type"><a href="qevent.html#Type-enum">Type</a></span> <i>type</i>)</h3>
<p>Contructs an event object of type <i>type</i>.</p>
<!-- @@@QEvent -->
<!-- $$$~QEvent[overload1]$$$~QEvent -->
<h3 class="fn" id="dtor.QEvent"><a name="dtor.QEvent"></a><code>[virtual] </code>QEvent::<span class="name">~QEvent</span>()</h3>
<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>
<!-- @@@~QEvent -->
<!-- $$$accept[overload1]$$$accept -->
<h3 class="fn" id="accept"><a name="accept"></a><span class="type">void</span> QEvent::<span class="name">accept</span>()</h3>
<p>Sets the accept flag of the event object, the equivalent of calling <a href="qevent.html#accepted-prop">setAccepted</a>(true).</p>
<p>Setting the accept parameter indicates that the event receiver wants the event. Unwanted events might be propagated to the parent widget.</p>
<p><b>See also </b><a href="qevent.html#ignore">ignore</a>().</p>
<!-- @@@accept -->
<!-- $$$ignore[overload1]$$$ignore -->
<h3 class="fn" id="ignore"><a name="ignore"></a><span class="type">void</span> QEvent::<span class="name">ignore</span>()</h3>
<p>Clears the accept flag parameter of the event object, the equivalent of calling <a href="qevent.html#accepted-prop">setAccepted</a>(false).</p>
<p>Clearing the accept parameter indicates that the event receiver does not want the event. Unwanted events might be propagated to the parent widget.</p>
<p><b>See also </b><a href="qevent.html#accept">accept</a>().</p>
<!-- @@@ignore -->
<!-- $$$registerEventType[overload1]$$$registerEventTypeint -->
<h3 class="fn" id="registerEventType"><a name="registerEventType"></a><code>[static] </code><span class="type">int</span> QEvent::<span class="name">registerEventType</span>(<span class="type">int</span> <i>hint</i> = -1)</h3>
<p>Registers and returns a custom event type. The <i>hint</i> provided will be used if it is available, otherwise it will return a value between <a href="qevent.html#Type-enum">QEvent::User</a> and <a href="qevent.html#Type-enum">QEvent::MaxUser</a> that has not yet been registered. The <i>hint</i> is ignored if its value is not between <a href="qevent.html#Type-enum">QEvent::User</a> and <a href="qevent.html#Type-enum">QEvent::MaxUser</a>.</p>
<p>Returns -1 if all available values are already taken or the program is shutting down.</p>
<p><b>Note:</b> This function is thread-safe.</p>
<p>This function was introduced in  Qt 4.4.</p>
<!-- @@@registerEventType -->
<!-- $$$spontaneous[overload1]$$$spontaneous -->
<h3 class="fn" id="spontaneous"><a name="spontaneous"></a><span class="type">bool</span> QEvent::<span class="name">spontaneous</span>() const</h3>
<p>Returns <code>true</code> if the event originated outside the application (a system event); otherwise returns <code>false</code>.</p>
<p>The return value of this function is not defined for paint events.</p>
<!-- @@@spontaneous -->
<!-- $$$type[overload1]$$$type -->
<h3 class="fn" id="type"><a name="type"></a><span class="type"><a href="qevent.html#Type-enum">Type</a></span> QEvent::<span class="name">type</span>() const</h3>
<p>Returns the event type.</p>
<!-- @@@type -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2017 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br>    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.<br>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>