QInputEvent Class

The QInputEvent class is the base class for events that describe user input. 更多...

头文件: #include <QInputEvent>
qmake: QT += gui
基类: QEvent
派生类:

QContextMenuEvent, QHoverEvent, QKeyEvent, QMouseEvent, QNativeGestureEvent, QTabletEvent, QTouchEvent, and QWheelEvent

公有函数

Qt::KeyboardModifiers modifiers() const
ulong timestamp() const
  • 6 个公有函数继承自 QEvent

其他继承的成员

  • 1 个属性继承自 QEvent
  • 1 个静态公有成员继承自 QEvent
  • 2 个受保护的变量继承自 QEvent

详细描述

The QInputEvent class is the base class for events that describe user input.

成员函数

Qt::KeyboardModifiers QInputEvent::modifiers() const

Returns the keyboard modifier flags that existed immediately before the event occurred.

参见 QGuiApplication::keyboardModifiers().

ulong QInputEvent::timestamp() const

Returns the window system's timestamp for this event. It will normally be in milliseconds since some arbitrary point in time, such as the time when the system was started.