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 QKeyEventTransition(object, type, key[, sourceState=None])

QKeyEventTransition([sourceState=None])

param type

Type

param sourceState

QState

param object

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

Returns the key that this key event transition checks for.

See also

setKey()

PySide2.QtWidgets.QKeyEventTransition.modifierMask()
Return type

KeyboardModifiers

Returns the keyboard modifier mask that this key event transition checks for.

PySide2.QtWidgets.QKeyEventTransition.setKey(key)
Parameters

keyint

Sets the key that this key event transition will check for.

See also

key()

PySide2.QtWidgets.QKeyEventTransition.setModifierMask(modifiers)
Parameters

modifiersKeyboardModifiers

Sets the keyboard modifier mask that this key event transition will check for to modifierMask .

See also

modifierMask()