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 |
公有函数
- 6 个公有函数继承自 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.