The QShortcutEvent class provides an event which is generated when the user presses a key combination. 更多...
| 頭: | #include <QShortcutEvent> |
| qmake: | QT += gui |
| 繼承: | QEvent |
| QShortcutEvent (const QKeySequence & key , int id , bool ambiguous = false) | |
| ~QShortcutEvent () | |
| bool | isAmbiguous () const |
| const QKeySequence & | key () const |
| int | shortcutId () const |
The QShortcutEvent class provides an event which is generated when the user presses a key combination.
通常,不需要直接使用此類; QShortcut 提供處理快捷鍵的更高級彆接口。
另請參閱 QShortcut .
構造快捷鍵事件為給定 key 按下,關聯 QShortcut ID id .
ambiguous specifies whether there is more than one QShortcut for the same key sequence.
銷毀事件對象。
返迴
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 ().