45 #include <QtCore/qnamespace.h> 46 #include <QtCore/qbytearray.h> 47 #include <QtCore/qobjectdefs.h> 59 QDOC_PROPERTY(
bool accepted READ isAccepted WRITE setAccepted)
72 MouseButtonRelease = 3,
73 MouseButtonDblClick = 4,
91 ParentAboutToChange = 131,
97 WindowDeactivate = 25,
101 WindowTitleChange = 33,
102 WindowIconChange = 34,
103 ApplicationWindowIconChange = 35,
104 ApplicationFontChange = 36,
105 ApplicationLayoutDirectionChange = 37,
106 ApplicationPaletteChange = 38,
122 ChildInsertedRequest = 67,
127 ShowWindowRequest = 73,
134 EmbeddingControl = 79,
135 ActivateControl = 80,
136 DeactivateControl = 81,
139 AccessibilityPrepare = 86,
143 LayoutDirectionChange = 90,
154 ActivationChange = 99,
156 IconTextChange = 101,
157 ModifiedChange = 102,
158 MouseTrackingChange = 109,
161 WindowUnblocked = 104,
162 WindowStateChange = 105,
175 ShortcutOverride = 51,
180 AccelOverride = ShortcutOverride,
183 WhatsThisClicked = 118,
186 CaptionChange = WindowTitleChange,
187 IconChange = WindowIconChange,
191 ApplicationActivate = 121,
192 ApplicationActivated = ApplicationActivate,
193 ApplicationDeactivate = 122,
194 ApplicationDeactivated = ApplicationDeactivate,
196 QueryWhatsThis = 123,
197 EnterWhatsThisMode = 124,
198 LeaveWhatsThisMode = 125,
206 AccessibilityHelp = 119,
207 AccessibilityDescription = 130,
211 #ifdef QT_KEYPAD_NAVIGATION 212 EnterEditFocus = 150,
213 LeaveEditFocus = 151,
215 AcceptDropsChange = 152,
217 MenubarUpdated = 153,
220 ZeroTimerEvent = 154,
222 GraphicsSceneMouseMove = 155,
223 GraphicsSceneMousePress = 156,
224 GraphicsSceneMouseRelease = 157,
225 GraphicsSceneMouseDoubleClick = 158,
226 GraphicsSceneContextMenu = 159,
227 GraphicsSceneHoverEnter = 160,
228 GraphicsSceneHoverMove = 161,
229 GraphicsSceneHoverLeave = 162,
230 GraphicsSceneHelp = 163,
231 GraphicsSceneDragEnter = 164,
232 GraphicsSceneDragMove = 165,
233 GraphicsSceneDragLeave = 166,
234 GraphicsSceneDrop = 167,
235 GraphicsSceneWheel = 168,
237 KeyboardLayoutChange = 169,
239 DynamicPropertyChange = 170,
241 TabletEnterProximity = 171,
242 TabletLeaveProximity = 172,
244 NonClientAreaMouseMove = 173,
245 NonClientAreaMouseButtonPress = 174,
246 NonClientAreaMouseButtonRelease = 175,
247 NonClientAreaMouseButtonDblClick = 176,
251 ContentsRectChange = 178,
253 MacGLWindowChange = 179,
257 GraphicsSceneResize = 181,
258 GraphicsSceneMove = 182,
263 NetworkReplyUpdated = 185,
268 UngrabKeyboard = 189,
269 MacGLClearDrawable = 191,
271 StateMachineSignal = 192,
272 StateMachineWrapped = 193,
278 #ifndef QT_NO_GESTURES 281 RequestSoftwareInputPanel = 199,
282 CloseSoftwareInputPanel = 200,
284 UpdateSoftKeys = 201,
287 #ifndef QT_NO_GESTURES 289 GestureOverride = 202,
309 inline void accept() { m_accept =
true; }
310 inline void ignore() { m_accept =
false; }
312 static int registerEventType(
int hint = -1);
329 friend class Q3AccelManager;
336 #ifndef QT_NO_GESTURES 361 QT3_SUPPORT
bool inserted()
const {
return type() == ChildInserted; }
375 QT3_SUPPORT
void *
data()
const {
return d; }
376 QT3_SUPPORT
void setData(
void* aData) {
d =
reinterpret_cast<QEventPrivate *
>(aData); }
396 #endif // QCOREEVENT_H
The QApplication class manages the GUI application's control flow and main settings.
The QGraphicsScene class provides a surface for managing a large number of 2D graphical items...
#define QT_END_NAMESPACE
This macro expands to.
#define QDOC_PROPERTY(text)
bool polished() const
Returns true if type() is QEvent::ChildPolished; otherwise returns false.
bool added() const
Returns true if type() is QEvent::ChildAdded; otherwise returns false.
The QByteArray class provides an array of bytes.
void setAccepted(bool accepted)
The QDynamicPropertyChangeEvent class contains event parameters for dynamic property change events...
QByteArray propertyName() const
Returns the name of the dynamic property that was added, changed or removed.
The QObject class is the base class of all Qt objects.
bool removed() const
Returns true if type() is QEvent::ChildRemoved; otherwise returns false.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static bool setData(const QByteArray &data, STGMEDIUM *pmedium)
bool spontaneous() const
Returns true if the event originated outside the application (a system event); otherwise returns fals...
int timerId() const
Returns the unique timer identifier, which is the same identifier as returned from QObject::startTime...
static const char * data(const QByteArray &arr)
The QChildEvent class contains event parameters for child object events.
The QCoreApplication class provides an event loop for console Qt applications.
The ParentChange element allows you to reparent an Item in a state change.
Type
This enum type defines the valid event types in Qt.
The QTimerEvent class contains parameters that describe a timer event.
The QCustomEvent class provides support for custom events.
The QGraphicsView class provides a widget for displaying the contents of a QGraphicsScene.
void ignore()
Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false).
void accept()
Sets the accept flag of the event object, the equivalent of calling setAccepted(true).
The Timer item triggers a handler at a specified interval.
The QEvent class is the base class of all event classes.
Type type() const
Returns the event type.
QObject * child() const
Returns the child object that was added or removed.