Skip to content

PythonQt.QtGui.QInputEvent · declarations 001

Back to PythonQt.QtGui.QInputEvent

modifiers

modifiers() -> Any

X.modifiers()

Supplemental documentation: Qt 5 reference:

Qt::KeyboardModifiers QInputEvent::modifiers() const

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

See also QGuiApplication::keyboardModifiers().

Upstream PySide2 reference signatures (binding differences may apply):

modifiers(self) -> PySide2.QtCore.Qt.KeyboardModifiers

Source: https://doc.qt.io/archives/qt-5.15/qinputevent.html#modifiers

setModifiers

setModifiers(amodifiers: Any) -> None

X.setModifiers(amodifiers)

Upstream PySide2 reference signatures (binding differences may apply):

setModifiers(self, amodifiers: PySide2.QtCore.Qt.KeyboardModifiers) -> None

Source: https://doc.qt.io/archives/qt-5.15/qinputevent.html#setModifiers

setTimestamp

setTimestamp(atimestamp: int) -> None

X.setTimestamp(atimestamp)

Upstream PySide2 reference signatures (binding differences may apply):

setTimestamp(self, atimestamp: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qinputevent.html#setTimestamp

timestamp

timestamp() -> int

X.timestamp() -> int

Supplemental documentation: Qt 5 reference:

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.

Upstream PySide2 reference signatures (binding differences may apply):

timestamp(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qinputevent.html#timestamp