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
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 givenobject
, with the givenkey
andsourceState
.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
-
PySide2.QtWidgets.QKeyEventTransition.
modifierMask
()¶ - Return type
KeyboardModifiers
Returns the keyboard modifier mask that this key event transition checks for.
See also
-
PySide2.QtWidgets.QKeyEventTransition.
setKey
(key)¶ - Parameters
key –
int
Sets the
key
that this key event transition will check for.See also
-
PySide2.QtWidgets.QKeyEventTransition.
setModifierMask
(modifiers)¶ - Parameters
modifiers –
KeyboardModifiers
Sets the keyboard modifier mask that this key event transition will check for to
modifierMask
.See also
© 2018 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.