QInputEvent露

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

Inheritance diagram of PySide2.QtGui.QInputEvent

Inherited by: QContextMenuEvent, QHoverEvent, QKeyEvent, QMouseEvent, QNativeGestureEvent, QTabletEvent, QTouchEvent, QWheelEvent

Synopsis露

Functions露

Detailed Description露

class PySide2.QtGui.QInputEvent(type[, modifiers=Qt.NoModifier])露
Parameters:
  • type 鈥� Type

  • modifiers 鈥� KeyboardModifiers

PySide2.QtGui.QInputEvent.ts露
PySide2.QtGui.QInputEvent.modifiers()露
Return type:

KeyboardModifiers

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

PySide2.QtGui.QInputEvent.setModifiers(amodifiers)露
Parameters:

amodifiers 鈥� KeyboardModifiers

See also

modifiers()

PySide2.QtGui.QInputEvent.setTimestamp(atimestamp)露
Parameters:

atimestamp 鈥� ulong

See also

timestamp()

PySide2.QtGui.QInputEvent.timestamp()露
Return type:

ulong

Returns the window system鈥檚 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.