61 return new QMouseEvent(*static_cast<QMouseEvent*>(e));
64 return new QKeyEvent(*static_cast<QKeyEvent*>(e));
67 return new QFocusEvent(*static_cast<QFocusEvent*>(e));
74 Q_ASSERT_X(
false,
"cloneEvent()",
"not implemented");
77 return new QMoveEvent(*static_cast<QMoveEvent*>(e));
81 Q_ASSERT_X(
false,
"cloneEvent()",
"not implemented");
84 Q_ASSERT_X(
false,
"cloneEvent()",
"not implemented");
87 return new QShowEvent(*static_cast<QShowEvent*>(e));
89 return new QHideEvent(*static_cast<QHideEvent*>(e));
91 return new QCloseEvent(*static_cast<QCloseEvent*>(e));
109 #ifndef QT_NO_WHEELEVENT 111 return new QWheelEvent(*static_cast<QWheelEvent*>(e));
112 #endif //QT_NO_WHEELEVENT 128 Q_ASSERT_X(
false,
"cloneEvent()",
"not implemented");
131 Q_ASSERT_X(
false,
"cloneEvent()",
"not implemented");
134 Q_ASSERT_X(
false,
"cloneEvent()",
"not implemented");
142 #ifndef QT_NO_DRAGANDDROP 150 return new QDropEvent(*static_cast<QDragMoveEvent*>(e));
155 return new QChildEvent(*static_cast<QChildEvent*>(e));
157 return new QChildEvent(*static_cast<QChildEvent*>(e));
159 case QEvent::ChildInsertedRequest:
161 case QEvent::ChildInserted:
162 return new QChildEvent(*static_cast<QChildEvent*>(e));
163 case QEvent::LayoutHint:
164 Q_ASSERT_X(
false,
"cloneEvent()",
"not implemented");
168 return new QChildEvent(*static_cast<QChildEvent*>(e));
189 #ifndef QT_NO_CONTEXTMENU 197 #ifndef QT_NO_TABLETEVENT 199 return new QTabletEvent(*static_cast<QTabletEvent*>(e));
200 #endif //QT_NO_TABLETEVENT 209 #ifndef QT_NO_TABLETEVENT 211 return new QTabletEvent(*static_cast<QTabletEvent*>(e));
213 return new QTabletEvent(*static_cast<QTabletEvent*>(e));
214 #endif //QT_NO_TABLETEVENT 246 return new QHelpEvent(*static_cast<QHelpEvent*>(e));
248 return new QHelpEvent(*static_cast<QHelpEvent*>(e));
249 #ifndef QT_NO_STATUSTIP 252 #endif //QT_NO_STATUSTIP 257 return new QActionEvent(*static_cast<QActionEvent*>(e));
262 #ifndef QT_NO_SHORTCUT 265 #endif //QT_NO_SHORTCUT 267 return new QKeyEvent(*static_cast<QKeyEvent*>(e));
271 Q_ASSERT_X(
false,
"cloneEvent()",
"not implemented");
273 case QEvent::AccelAvailable:
274 Q_ASSERT_X(
false,
"cloneEvent()",
"not implemented");
278 #ifndef QT_NO_WHATSTHIS 281 #endif //QT_NO_WHATSTHIS 283 #ifndef QT_NO_TOOLBAR 286 #endif //QT_NO_TOOLBAR 294 return new QHelpEvent(*static_cast<QHelpEvent*>(e));
306 return new QHoverEvent(*static_cast<QHoverEvent*>(e));
309 Q_ASSERT_X(
false,
"cloneEvent()",
"not implemented");
312 Q_ASSERT_X(
false,
"cloneEvent()",
"not implemented");
315 #ifdef QT_KEYPAD_NAVIGATION 316 case QEvent::EnterEditFocus:
318 case QEvent::LeaveEditFocus:
326 return new QMenubarUpdatedEvent(*static_cast<QMenubarUpdatedEvent*>(e));
330 Q_ASSERT_X(
false,
"cloneEvent()",
"not implemented");
332 #ifndef QT_NO_GRAPHICSVIEW 384 return new QHelpEvent(*static_cast<QHelpEvent*>(e));
417 #ifndef QT_NO_TABLETEVENT 420 return new QTabletEvent(*static_cast<QTabletEvent*>(e));
421 #endif //QT_NO_TABLETEVENT 427 return new QMouseEvent(*static_cast<QMouseEvent*>(e));
439 Q_ASSERT_X(
false,
"cloneEvent()",
"not implemented");
441 #ifndef QT_NO_GRAPHICSVIEW 464 Q_ASSERT_X(
false,
"cloneEvent()",
"not implemented");
476 return new QTouchEvent(*static_cast<QTouchEvent*>(e));
478 #ifndef QT_NO_GESTURES 480 Q_ASSERT_X(
false,
"cloneEvent()",
"not implemented");
493 Q_ASSERT_X(
false,
"cloneEvent()",
"not implemented");
void setModifiers(Qt::KeyboardModifiers modifiers)
void setScenePos(const QPointF &pos)
Sets the scene position of the mouse to pos.
The QKeyEvent class describes a key event.
QPoint screenPos() const
Returns the mouse cursor position in screen coordinates.
void setNewSize(const QSizeF &size)
void setModifiers(Qt::KeyboardModifiers modifiers)
void setLastPos(const QPointF &pos)
QSizeF oldSize() const
Returns the old size (i.e., the size immediately before the widget was resized).
The QWheelEvent class contains parameters that describe a wheel event.
void setScreenPos(const QPoint &pos)
QPoint screenPos() const
Returns the position of the mouse cursor in screen coordinates at the moment the hover event was sent...
void setScenePos(const QPointF &pos)
The QHoverEvent class contains parameters that describe a mouse event.
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
The QShortcutEvent class provides an event which is generated when the user presses a key combination...
Qt::MouseButton button() const
Returns the mouse button (if any) that caused the event.
Qt::MouseButtons buttons() const
Returns a Qt::MouseButtons value indicating which buttons were pressed on the mouse when this mouse e...
The QDynamicPropertyChangeEvent class contains event parameters for dynamic property change events...
void setButtonDownPos(Qt::MouseButton button, const QPointF &pos)
QWidget * widget() const
Returns the widget where the event originated, or 0 if the event originates from another application...
The QGraphicsSceneResizeEvent class provides events for widget resizing in the graphics view framewor...
Qt::KeyboardModifiers modifiers() const
Returns the keyboard modifiers that were pressed when the drag and drop event was created...
The QActionEvent class provides an event that is generated when a QAction is added, removed, or changed.
void setButtons(Qt::MouseButtons buttons)
void setOldSize(const QSizeF &size)
void setScenePos(const QPointF &pos)
QPointF newPos() const
Returns the new position (i.e., the current position).
void setWidget(QWidget *widget)
Sets the widget related to this event.
The QGraphicsSceneMoveEvent class provides events for widget moving in the graphics view framework...
The QDragMoveEvent class provides an event which is sent while a drag and drop action is in progress...
void setButtons(Qt::MouseButtons buttons)
QPointF pos() const
Returns the position of the cursor in item coordinates when the wheel event occurred.
QPointF lastScenePos() const
Returns the last recorded, the scene coordinates of the previous mouse or hover event received by the...
QPointF lastScenePos() const
Returns the last recorded mouse cursor position in scene coordinates.
Q_CORE_EXPORT const QStateMachinePrivate::Handler * qcoreStateMachineHandler()
The QMoveEvent class contains event parameters for move events.
void setPos(const QPointF &pos)
Qt::KeyboardModifiers modifiers() const
Returns the keyboard modifiers at the moment the hover event was sent.
Qt::MouseButtons buttons() const
Returns the mouse buttons that were pressed when the wheel event occurred.
void setModifiers(Qt::KeyboardModifiers modifiers)
Sets the modifiers for the current hover event to modifiers.
void setPos(const QPointF &pos)
Sets the position of the mouse to pos; this should be relative to the widget that generated the event...
The QHideEvent class provides an event which is sent after a widget is hidden.
void setOldPos(const QPointF &pos)
QPoint screenPos() const
Returns the position of the cursor in screen coordinates when the wheel event occurred.
void setPos(const QPointF &pos)
The QResizeEvent class contains event parameters for resize events.
QPoint screenPos() const
Returns the position of the mouse relative to the screen.
The QDragLeaveEvent class provides an event that is sent to a widget when a drag and drop action leav...
The QShowEvent class provides an event that is sent when a widget is shown.
void setLastScenePos(const QPointF &pos)
QPointF oldPos() const
Returns the old position (i.e., the position immediately before the widget was moved).
The QTabletEvent class contains parameters that describe a Tablet event.
The QMouseEvent class contains parameters that describe a mouse event.
The QChildEvent class contains event parameters for child object events.
QPointF lastPos() const
Returns the last recorded mouse cursor position in item coordinates.
#define Q_ASSERT_X(cond, where, what)
void setLastScreenPos(const QPoint &pos)
QPointF scenePos() const
Returns the position of the cursor in scene coordinates when the wheel event occurred.
int delta() const
Returns the distance that the wheel is rotated, in eighths (1/8s) of a degree.
The QDropEvent class provides an event which is sent when a drag and drop action is completed...
The QWindowStateChangeEvent class provides the window state before a window state change...
QSizeF newSize() const
Returns the new size (i.e., the current size).
void setScreenPos(const QPoint &pos)
The QGraphicsSceneDragDropEvent class provides events for drag and drop in the graphics view framewor...
QPoint lastScreenPos() const
Returns the last recorded mouse cursor position in screen coordinates.
QPointF scenePos() const
Returns the mouse cursor position in scene coordinates.
The QStatusTipEvent class provides an event that is used to show messages in a status bar...
The QDragEnterEvent class provides an event which is sent to a widget when a drag and drop action ent...
The QWhatsThisClickedEvent class provides an event that can be used to handle hyperlinks in a "What's...
void setLastScenePos(const QPointF &pos)
void setModifiers(Qt::KeyboardModifiers modifiers)
Sets the keyboard modifiers that were pressed when the event was created to modifiers.
void setScreenPos(const QPoint &pos)
Sets the position associated with the hover event to the given point in screen coordinates.
QPointF pos() const
Returns the position of the mouse cursor in item coordinates at the moment the hover event was sent...
QPoint buttonDownScreenPos(Qt::MouseButton button) const
Returns the mouse cursor position in screen coordinates where the specified button was clicked...
void setButtons(Qt::MouseButtons buttons)
Sets the mouse buttons that were pressed when the event was created to buttons.
QPointF scenePos() const
Returns the position of the mouse in scene coordinates.
void setPos(const QPointF &pos)
Sets the position associated with the hover event to the given point in item coordinates.
Qt::KeyboardModifiers modifiers() const
Returns the keyboard modifiers that were active when the wheel event occurred.
QPointF scenePos() const
Returns the position of the mouse cursor in scene coordinates at the moment the hover event was sent...
QPointF pos() const
Returns the mouse cursor position in item coordinates.
QPointF buttonDownPos(Qt::MouseButton button) const
Returns the mouse cursor position in item coordinates where the specified button was clicked...
Qt::KeyboardModifiers modifiers() const
Returns the keyboard modifiers in use at the time the event was sent.
The QTouchEvent class contains parameters that describe a touch event.
QPoint lastScreenPos() const
Returns the last recorded mouse cursor position in screen coordinates.
The QGraphicsSceneWheelEvent class provides wheel events in the graphics view framework.
void setLastScreenPos(const QPoint &pos)
Qt::Orientation orientation() const
Returns the wheel orientation.
void setButtonDownScreenPos(Qt::MouseButton button, const QPoint &pos)
The QIconDragEvent class indicates that a main icon drag has begun.
void setButton(Qt::MouseButton button)
The QEvent class is the base class of all event classes.
Type type() const
Returns the event type.
void setOrientation(Qt::Orientation orientation)
void setScreenPos(const QPoint &pos)
Sets the mouse position relative to the screen to pos.
The QCloseEvent class contains parameters that describe a close event.
void setNewPos(const QPointF &pos)
The QFocusEvent class contains event parameters for widget focus events.
QPointF lastPos() const
Returns the last recorded mouse cursor position in item coordinates.
void setLastPos(const QPointF &pos)
Qt::MouseButtons buttons() const
Returns the combination of mouse buttons that were pressed at the time the event was sent...
void setScenePos(const QPointF &pos)
Sets the position associated with the hover event to the given point in scene coordinates.
QPointF pos() const
Returns the mouse position of the event relative to the view that sent the event. ...
The QGraphicsSceneHoverEvent class provides hover events in the graphics view framework.
The QFileOpenEvent class provides an event that will be sent when there is a request to open a file o...
The QHelpEvent class provides an event that is used to request helpful information about a particular...