QShortcutEvent 類提供當用戶按下組閤鍵時生成的事件。 更多...
| 頭: | #include <QShortcutEvent> |
| qmake: | QT += gui |
| 繼承: | QEvent |
| QShortcutEvent (const QKeySequence & key , int id , bool ambiguous = false) | |
| virtual | ~QShortcutEvent () |
| bool | isAmbiguous () const |
| const QKeySequence & | key () const |
| int | shortcutId () const |
通常,不需要直接使用此類; QShortcut 提供處理快捷鍵的更高級彆接口。
另請參閱 QShortcut .
構造快捷鍵事件為給定 key 按下,關聯 QShortcut ID id .
ambiguous specifies whether there is more than one QShortcut for the same key sequence.
[虛擬]
QShortcutEvent::
~QShortcutEvent
()
銷毀事件對象。
返迴
true
if the key sequence that triggered the event is ambiguous.
另請參閱 QShortcut::activatedAmbiguously ().
Returns the key sequence that triggered the event.
Returns the ID of the QShortcut object for which this event was generated.
另請參閱 QShortcut::id ().