QShortcutEventclass provides an event which is generated when the user presses a key combination. 更多 …
def
isAmbiguous
()
def
key
()
def
shortcutId
()
QShortcutEvent
(
key
,
id
[
,
ambiguous=false
]
)
¶
- param id
int- param ambiguous
bool- param key
构造快捷键事件为给定
key
按下,关联
QShortcut
ID
id
.
ambiguous
specifies whether there is more than one
QShortcut
for the same key sequence.
PySide2.QtGui.QShortcutEvent.
isAmbiguous
(
)
¶
bool
返回
true
if the key sequence that triggered the event is ambiguous.
另请参阅
activatedAmbiguously()
PySide2.QtGui.QShortcutEvent.
key
(
)
¶
Returns the key sequence that triggered the event.