• PySide 模块
  • PySide.QtGui
  • 内容表

    上一话题

    QClipboardEvent

    下一话题

    QToolBarChangeEvent

    QShortcutEvent

    概要

    函数

    详细描述

    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 提供处理快捷键的更高级别接口。

    class PySide.QtGui. QShortcutEvent ( key , id [ , ambiguous=false ] )
    参数:

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

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

    PySide.QtGui.QShortcutEvent. isAmbiguous ( )
    返回类型: PySide.QtCore.bool

    Returns true if the key sequence that triggered the event is ambiguous.

    PySide.QtGui.QShortcutEvent. key ( )
    返回类型: PySide.QtGui.QKeySequence

    Returns the key sequence that triggered the event.

    PySide.QtGui.QShortcutEvent. shortcutId ( )
    返回类型: PySide.QtCore.int

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

    另请参阅

    QShortcut.id()