43 #include <QtCore/qnamespace.h>
44 #include <QtCore/qbytearray.h>
45 #include <QtCore/qobjectdefs.h>
49 #define Q_EVENT_DISABLE_COPY(Class) \
51 Class(const Class &) = default; \
52 Class(Class &&) = delete; \
53 Class &operator=(const Class &other) = default; \
54 Class &operator=(Class &&) = delete
60 QDOC_PROPERTY(
bool accepted READ isAccepted WRITE setAccepted)
74 MouseButtonRelease = 3,
75 MouseButtonDblClick = 4,
81 FocusAboutToChange = 23,
94 ParentAboutToChange = 131,
97 WindowDeactivate = 25,
101 WindowTitleChange = 33,
102 WindowIconChange = 34,
103 ApplicationWindowIconChange = 35,
104 ApplicationFontChange = 36,
105 ApplicationLayoutDirectionChange = 37,
106 ApplicationPaletteChange = 38,
122 ShowWindowRequest = 73,
129 EmbeddingControl = 79,
130 ActivateControl = 80,
131 DeactivateControl = 81,
137 LayoutDirectionChange = 90,
148 ActivationChange = 99,
150 IconTextChange = 101,
151 ModifiedChange = 102,
152 MouseTrackingChange = 109,
155 WindowUnblocked = 104,
156 WindowStateChange = 105,
158 ReadOnlyChange = 106,
171 ShortcutOverride = 51,
173 WhatsThisClicked = 118,
177 ApplicationActivate = 121,
178 ApplicationActivated = ApplicationActivate,
179 ApplicationDeactivate = 122,
180 ApplicationDeactivated = ApplicationDeactivate,
182 QueryWhatsThis = 123,
183 EnterWhatsThisMode = 124,
184 LeaveWhatsThisMode = 125,
194 #ifdef QT_KEYPAD_NAVIGATION
195 EnterEditFocus = 150,
196 LeaveEditFocus = 151,
198 AcceptDropsChange = 152,
200 ZeroTimerEvent = 154,
202 GraphicsSceneMouseMove = 155,
203 GraphicsSceneMousePress = 156,
204 GraphicsSceneMouseRelease = 157,
205 GraphicsSceneMouseDoubleClick = 158,
206 GraphicsSceneContextMenu = 159,
207 GraphicsSceneHoverEnter = 160,
208 GraphicsSceneHoverMove = 161,
209 GraphicsSceneHoverLeave = 162,
210 GraphicsSceneHelp = 163,
211 GraphicsSceneDragEnter = 164,
212 GraphicsSceneDragMove = 165,
213 GraphicsSceneDragLeave = 166,
214 GraphicsSceneDrop = 167,
215 GraphicsSceneWheel = 168,
216 GraphicsSceneLeave = 220,
218 KeyboardLayoutChange = 169,
220 DynamicPropertyChange = 170,
222 TabletEnterProximity = 171,
223 TabletLeaveProximity = 172,
225 NonClientAreaMouseMove = 173,
226 NonClientAreaMouseButtonPress = 174,
227 NonClientAreaMouseButtonRelease = 175,
228 NonClientAreaMouseButtonDblClick = 176,
232 ContentsRectChange = 178,
234 MacGLWindowChange = 179,
238 GraphicsSceneResize = 181,
239 GraphicsSceneMove = 182,
244 NetworkReplyUpdated = 185,
249 UngrabKeyboard = 189,
251 StateMachineSignal = 192,
252 StateMachineWrapped = 193,
258 #ifndef QT_NO_GESTURES
261 RequestSoftwareInputPanel = 199,
262 CloseSoftwareInputPanel = 200,
265 #ifndef QT_NO_GESTURES
267 GestureOverride = 202,
275 OrientationChange = 208,
285 StyleAnimationUpdate = 213,
286 ApplicationStateChange = 214,
288 WindowChangeInternal = 215,
289 ScreenChangeInternal = 216,
291 PlatformSurface = 217,
295 TabletTrackingChange = 219,
310 inline virtual void setAccepted(
bool accepted) { m_accept = accepted; }
313 inline void accept() { m_accept =
true; }
314 inline void ignore() { m_accept =
false; }
320 static int registerEventType(
int hint = -1) noexcept;
345 bool m_posted =
false;
346 bool m_spont =
false;
347 bool m_accept =
true;
348 bool m_unused =
false;
352 quint16 m_singlePointEvent : 1;
The QApplication class manages the GUI application's control flow and main settings.
The QByteArray class provides an array of bytes.
The QChildEvent class contains event parameters for child object events.
QChildEvent * clone() const override
The QCoreApplication class provides an event loop for Qt applications without UI.
QDeferredDeleteEvent * clone() const override
The QDynamicPropertyChangeEvent class contains event parameters for dynamic property change events.
QByteArray propertyName() const
QDynamicPropertyChangeEvent * clone() const override
The QEvent class is the base class of all event classes. Event objects contain event parameters.
QEvent(Type type, InputEventTag)
virtual void setAccepted(bool accepted)
bool isSinglePointEvent() const noexcept
QEvent(Type type, SinglePointEventTag)
bool isPointerEvent() const noexcept
QEvent(Type type, PointerEventTag)
bool isInputEvent() const noexcept
The QObject class is the base class of all Qt objects.
static void setSpontaneous(QEvent *ev)
The QTimerEvent class contains parameters that describe a timer event.
QTimerEvent * clone() const override
auto it unsigned count const
#define Q_EVENT_DISABLE_COPY(Class)
GLenum GLuint GLint level
PointerEventTag()=default
SinglePointEventTag()=default
virtual HRESULT STDMETHODCALLTYPE Close(void)=0
virtual HRESULT STDMETHODCALLTYPE Move(enum TextUnit unit, int count, __RPC__out int *pRetVal)=0