QKeyEventTransition¶
The
QKeyEventTransition
class provides a transition for key events. More…
New in version 4.6.
Synopsis¶
Functions¶
def
key
()def
modifierMask
()def
setKey
(key)def
setModifierMask
(modifiers)
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:
- param sourceState:
- param object:
- param key:
int
Constructs a new key event transition for events of the given
type
for the givenobject
, with the givenkey
andsourceState
.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.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.