内容表

上一话题

QItemEditorFactory

下一话题

QKeySequenceEdit

QKeyEventTransition

QKeyEventTransition class provides a transition for key events. 更多

Inheritance diagram of PySide2.QtWidgets.QKeyEventTransition

4.6 版新增。

概要

函数

详细描述

QKeyEventTransition is part of 状态机框架 .

另请参阅

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 为给定 object ,采用给定 key and sourceState .

Constructs a new key event transition with the given sourceState .

PySide2.QtWidgets.QKeyEventTransition. key ( )
返回类型

int

Returns the key that this key event transition checks for.

另请参阅

setKey()

PySide2.QtWidgets.QKeyEventTransition. modifierMask ( )
返回类型

KeyboardModifiers

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

另请参阅

setModifierMask()

PySide2.QtWidgets.QKeyEventTransition. setKey ( key )
参数

key int

设置 key that this key event transition will check for.

另请参阅

key()

PySide2.QtWidgets.QKeyEventTransition. setModifierMask ( modifiers )
参数

modifiers KeyboardModifiers

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

另请参阅

modifierMask()