PySide6.QtStateMachine.QKeyEventTransition¶
- class QKeyEventTransition¶
The
QKeyEventTransitionclass provides a transition for key events. More…Synopsis¶
Properties¶
keyᅟ- The key that this key event transition is associated withmodifierMaskᅟ- The keyboard modifier mask that this key event transition checks for
Methods¶
def
__init__()def
key()def
modifierMask()def
setKey()
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¶
QKeyEventTransitionis part of Qt State Machine Framework .See also
Note
Properties can be used directly when
from __feature__ import true_propertyis used or via accessor functions otherwise.- property keyᅟ: int¶
This property holds the key that this key event transition is associated with.
- property modifierMaskᅟ: Combination of Qt.KeyboardModifier¶
This property holds the keyboard modifier mask that this key event transition checks for.
- Access functions:
Constructs a new key event transition with the given
sourceState.- __init__(object, type, key[, sourceState=None])
Constructs a new key event transition for events of the given
typefor the givenobject, with the givenkeyandsourceState.- key()¶
- Return type:
int
Returns the key that this key event transition checks for.
See also
Getter of property
keyᅟ.- modifierMask()¶
- Return type:
Combination of
KeyboardModifier
Returns the keyboard modifier mask that this key event transition checks for.
See also
Getter of property
modifierMaskᅟ.- setKey(key)¶
- Parameters:
key – int
Sets the
keythat this key event transition will check for.See also
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
Setter of property
modifierMaskᅟ.