PySide.QtGui.QShortcutEvent class provides an event which is generated when the user presses a key combination.
Normally you don't need to use this class directly; PySide.QtGui.QShortcut 提供处理快捷键的更高级别接口。
| 参数: |
|
|---|
构造快捷键事件为给定 key 按下,关联 PySide.QtGui.QShortcut ID id .
ambiguous specifies whether there is more than one PySide.QtGui.QShortcut for the same key sequence.
| 返回类型: | PySide.QtCore.bool |
|---|
Returns true if the key sequence that triggered the event is ambiguous.
| 返回类型: | PySide.QtGui.QKeySequence |
|---|
Returns the key sequence that triggered the event.
| 返回类型: | PySide.QtCore.int |
|---|
Returns the ID of the PySide.QtGui.QShortcut object for which this event was generated.
另请参阅