Obsolete Members for QShortcutEvent

以下成员源于类 QShortcutEvent 被弃用。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共函数

(弃用) QShortcutEvent (const QKeySequence & key , int id , bool ambiguous = false)
(弃用) int shortcutId () const

成员函数文档编制

[deprecated] QShortcutEvent:: QShortcutEvent (const QKeySequence & key , int id , bool ambiguous = false)

This function is deprecated. We strongly advise against using it in new code.

构造快捷键事件为给定 key 按下,关联 QShortcut ID id .

use the other constructor

ambiguous specifies whether there is more than one QShortcut for the same key sequence.

[deprecated] int QShortcutEvent:: shortcutId () const

This function is deprecated. We strongly advise against using it in new code.

Returns the ID of the QShortcut object for which this event was generated.

另请参阅 QShortcut::id ().