Shortcut
Qt Base Class: QShortcut
Signature: QShortcut(self, arg__1: PySide6.QtGui.QKeySequence.StandardKey, arg__2: PySide6.QtCore.QObject, arg__3: Callable, arg__4: PySide6.QtCore.Qt.ShortcutContext = Instance(Qt.WindowShortcut)) -> None
QShortcut(self, arg__1: Union[PySide6.QtGui.QKeySequence, PySide6.QtCore.QKeyCombination, PySide6.QtGui.QKeySequence.StandardKey, str, int], arg__2: PySide6.QtCore.QObject, arg__3: Callable, arg__4: PySide6.QtCore.Qt.ShortcutContext = Instance(Qt.WindowShortcut)) -> None
QShortcut(self, key: PySide6.QtGui.QKeySequence.StandardKey, parent: PySide6.QtCore.QObject, member: Optional[bytes] = None, ambiguousMember: Optional[bytes] = None, context: PySide6.QtCore.Qt.ShortcutContext = Instance(Qt.WindowShortcut)) -> None
QShortcut(self, key: Union[PySide6.QtGui.QKeySequence, PySide6.QtCore.QKeyCombination, PySide6.QtGui.QKeySequence.StandardKey, str, int], parent: PySide6.QtCore.QObject, member: Optional[bytes] = None, ambiguousMember: Optional[bytes] = None, context: PySide6.QtCore.Qt.ShortcutContext = Instance(Qt.WindowShortcut)) -> None
QShortcut(self, parent: PySide6.QtCore.QObject) -> None
Base classes
Name | Children | Inherits |
---|---|---|
ObjectMixin prettyqt.core.object |
||
QShortcut PySide6.QtGui QShortcut(self, arg__1: PySide6.QtGui.QKeySequence.StandardKey, arg__2: PySide6.QtCore.QObject, arg__3: Callable, arg__4: PySide6.QtCore.Qt.ShortcutContext \= Instance(Qt.WindowShortcut)) -> None |
⋔ Inheritance diagram
graph TD
1473245523104["gui.Shortcut"]
1473299815024["core.ObjectMixin"]
140713234304496["builtins.object"]
1473289232016["QtGui.QShortcut"]
1473288842240["QtCore.QObject"]
1473291690208["Shiboken.Object"]
1473299815024 --> 1473245523104
140713234304496 --> 1473299815024
1473289232016 --> 1473245523104
1473288842240 --> 1473289232016
1473291690208 --> 1473288842240
140713234304496 --> 1473291690208
🛈 DocStrings
Bases: ObjectMixin
, QShortcut
Source code in prettyqt\gui\shortcut.py
get_context() -> constants.ShortcutContextStr
get_key() -> gui.KeySequence
set_context(context: constants.ShortcutContextStr | constants.ShortcutContext)
Set shortcut context.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
context |
ShortcutContextStr | ShortcutContext
|
shortcut context |
required |
⌗ Property table
Qt Property | Type | Doc |
---|---|---|
objectName |
QString | |
key |
QKeySequence | |
enabled |
bool | |
autoRepeat |
bool | |
context |
Qt::ShortcutContext |