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’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.