QKeyEventTransition¶

The QKeyEventTransition class provides a transition for key events. More…

Inheritance diagram of PySide2.QtWidgets.QKeyEventTransition

New in version 4.6.

Synopsis¶

Functions¶

Detailed Description¶

QKeyEventTransition is part of The State Machine Framework .

See also

addTransition()

class PySide2.QtWidgets.QKeyEventTransition(object, type, key[, sourceState=None])¶

PySide2.QtWidgets.QKeyEventTransition([sourceState=None])

param type:

Type

param sourceState:

PySide2.QtCore.QState

param object:

PySide2.QtCore.QObject

param key:

int

Constructs a new key event transition for events of the given type for the given object , with the given key and sourceState .

Constructs a new key event transition with the given sourceState .

PySide2.QtWidgets.QKeyEventTransition.key()¶
Return type:

int

This property holds the key that this key event transition is associated with.

PySide2.QtWidgets.QKeyEventTransition.modifierMask()¶
Return type:

KeyboardModifiers

This property holds the keyboard modifier mask that this key event transition checks for.

PySide2.QtWidgets.QKeyEventTransition.setKey(key)¶
Parameters:

key – int

This property holds the key that this key event transition is associated with.

PySide2.QtWidgets.QKeyEventTransition.setModifierMask(modifiers)¶
Parameters:

modifiers – KeyboardModifiers

This property holds the keyboard modifier mask that this key event transition checks for.