Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide6.QtGui »

Classe « QShortcut »

Informations générales

Héritage

builtins.object
    Object
        QObject
            QShortcut

Définition

class QShortcut(QObject):

Description [extrait de QShortcut.__doc__]

QShortcut(self, arg__1: PySide6.QtGui.QKeySequence.StandardKey, arg__2: PySide6.QtCore.QObject, arg__3: Callable, arg__4: PySide6.QtCore.Qt.ShortcutContext = PySide6.QtCore.Qt.ShortcutContext.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 = PySide6.QtCore.Qt.ShortcutContext.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 = PySide6.QtCore.Qt.ShortcutContext.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 = PySide6.QtCore.Qt.ShortcutContext.WindowShortcut) -> None
QShortcut(self, parent: PySide6.QtCore.QObject) -> None

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
staticMetaObject<PySide6.QtCore.QMetaObject object at 0x7f40e25fecc0>

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__delattr__(self, name) Implement delattr(self, name). [extrait de __delattr__.__doc__]
__setattr__(self, name, value) Implement setattr(self, name, value). [extrait de __setattr__.__doc__]
activated
activatedAmbiguously
autoRepeat(self) -> bool autoRepeat(self) -> bool [extrait de autoRepeat.__doc__]
context(self) -> PySide6.QtCore.Qt.ShortcutContext context(self) -> PySide6.QtCore.Qt.ShortcutContext [extrait de context.__doc__]
destroyed
event(self, e: PySide6.QtCore.QEvent) -> bool event(self, e: PySide6.QtCore.QEvent) -> bool [extrait de event.__doc__]
id(self) -> int id(self) -> int [extrait de id.__doc__]
isEnabled(self) -> bool isEnabled(self) -> bool [extrait de isEnabled.__doc__]
key(self) -> PySide6.QtGui.QKeySequence key(self) -> PySide6.QtGui.QKeySequence [extrait de key.__doc__]
keys(self) -> List[PySide6.QtGui.QKeySequence] keys(self) -> List[PySide6.QtGui.QKeySequence] [extrait de keys.__doc__]
objectNameChanged
setAutoRepeat(self, on: bool) -> None setAutoRepeat(self, on: bool) -> None [extrait de setAutoRepeat.__doc__]
setContext(self, context: PySide6.QtCore.Qt.ShortcutContext) -> None setContext(self, context: PySide6.QtCore.Qt.ShortcutContext) -> None [extrait de setContext.__doc__]
setEnabled(self, enable: bool) -> None setEnabled(self, enable: bool) -> None [extrait de setEnabled.__doc__]
setKey(self, key: Union[PySide6.QtGui.QKeySequence, PySide6.QtCore.QKeyCombination, PySide6.QtGui.QKeySequence.StandardKey, str, int]) -> None setKey(self, key: Union[PySide6.QtGui.QKeySequence, PySide6.QtCore.QKeyCombination, PySide6.QtGui.QKeySequence.StandardKey, str, int]) -> None [extrait de setKey.__doc__]
setKeys setKeys(self, key: PySide6.QtGui.QKeySequence.StandardKey) -> None [extrait de setKeys.__doc__]
setWhatsThis(self, text: str) -> None setWhatsThis(self, text: str) -> None [extrait de setWhatsThis.__doc__]
tr
whatsThis(self) -> str whatsThis(self) -> str [extrait de whatsThis.__doc__]

Méthodes héritées de la classe QObject

__getattribute__, __init_subclass__, __repr__, __subclasshook__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, eventFilter, findChild, findChildren, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, parent, property, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent

Méthodes héritées de la classe Object

__getattribute__, __init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__dir__, __format__, __hash__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__