Table Of Contents

Previous topic

QClipboardEvent

Next topic

QToolBarChangeEvent

QShortcutEvent

Inheritance diagram of QShortcutEvent

Synopsis

Functions

Detailed Description

The 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 provides a higher-level interface to handle shortcut keys.

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

Constructs a shortcut event for the given key press, associated with the 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()
Return type:PySide.QtCore.bool

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

PySide.QtGui.QShortcutEvent.key()
Return type:PySide.QtGui.QKeySequence

Returns the key sequence that triggered the event.

PySide.QtGui.QShortcutEvent.shortcutId()
Return type:PySide.QtCore.int

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

See also

QShortcut.id()