PySide6.QtStateMachine.QKeyEventTransition

class QKeyEventTransition

The QKeyEventTransition class provides a transition for key events. More

Inheritance diagram of PySide6.QtStateMachine.QKeyEventTransition

Synopsis

Properties

  • keyᅟ - The key that this key event transition is associated with

  • modifierMaskᅟ - The keyboard modifier mask that this key event transition checks for

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

QKeyEventTransition is part of Qt State Machine Framework .

See also

addTransition()

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property keyᅟ: int

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

Access functions:
property modifierMaskᅟ: Combination of Qt.KeyboardModifier

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

Access functions:
__init__([sourceState=None])
Parameters:

sourceStateQState

Constructs a new key event transition with the given sourceState.

__init__(object, type, key[, sourceState=None])
Parameters:

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

key()
Return type:

int

Returns the key that this key event transition checks for.

See also

setKey()

Getter of property keyᅟ .

modifierMask()
Return type:

Combination of KeyboardModifier

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

Getter of property modifierMaskᅟ .

setKey(key)
Parameters:

key – int

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

See also

key()

Setter of property keyᅟ .

setModifierMask(modifiers)
Parameters:

modifiers – Combination of KeyboardModifier

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

See also

modifierMask()

Setter of property modifierMaskᅟ .