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 « QAction »

Informations générales

Héritage

builtins.object
    Object
        QObject
            QAction

Définition

class QAction(QObject):

Description [extrait de QAction.__doc__]

QAction(self, icon: Union[PySide6.QtGui.QIcon, PySide6.QtGui.QPixmap], text: str, parent: Optional[PySide6.QtCore.QObject] = None) -> None
QAction(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None
QAction(self, text: str, parent: Optional[PySide6.QtCore.QObject] = None) -> 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
AboutQtRolePySide6.QtGui.QAction.MenuRole.AboutQtRole
AboutRolePySide6.QtGui.QAction.MenuRole.AboutRole
ApplicationSpecificRolePySide6.QtGui.QAction.MenuRole.ApplicationSpecificRole
HighPriorityPySide6.QtGui.QAction.Priority.HighPriority
HoverPySide6.QtGui.QAction.ActionEvent.Hover
LowPriorityPySide6.QtGui.QAction.Priority.LowPriority
NormalPriorityPySide6.QtGui.QAction.Priority.NormalPriority
NoRolePySide6.QtGui.QAction.MenuRole.NoRole
PreferencesRolePySide6.QtGui.QAction.MenuRole.PreferencesRole
QuitRolePySide6.QtGui.QAction.MenuRole.QuitRole
staticMetaObject<PySide6.QtCore.QMetaObject object at 0x7f40e26280c0>
TextHeuristicRolePySide6.QtGui.QAction.MenuRole.TextHeuristicRole
TriggerPySide6.QtGui.QAction.ActionEvent.Trigger

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__]
__repr__(self) Return repr(self). [extrait de __repr__.__doc__]
__setattr__(self, name, value) Implement setattr(self, name, value). [extrait de __setattr__.__doc__]
ActionEvent
actionGroup(self) -> PySide6.QtGui.QActionGroup actionGroup(self) -> PySide6.QtGui.QActionGroup [extrait de actionGroup.__doc__]
activate(self, event: PySide6.QtGui.QAction.ActionEvent) -> None activate(self, event: PySide6.QtGui.QAction.ActionEvent) -> None [extrait de activate.__doc__]
associatedObjects(self) -> List[PySide6.QtCore.QObject] associatedObjects(self) -> List[PySide6.QtCore.QObject] [extrait de associatedObjects.__doc__]
autoRepeat(self) -> bool autoRepeat(self) -> bool [extrait de autoRepeat.__doc__]
changed
checkableChanged
data(self) -> Any data(self) -> Any [extrait de data.__doc__]
destroyed
enabledChanged
event(self, arg__1: PySide6.QtCore.QEvent) -> bool event(self, arg__1: PySide6.QtCore.QEvent) -> bool [extrait de event.__doc__]
font(self) -> PySide6.QtGui.QFont font(self) -> PySide6.QtGui.QFont [extrait de font.__doc__]
hover(self) -> None hover(self) -> None [extrait de hover.__doc__]
hovered
icon(self) -> PySide6.QtGui.QIcon icon(self) -> PySide6.QtGui.QIcon [extrait de icon.__doc__]
iconText(self) -> str iconText(self) -> str [extrait de iconText.__doc__]
isCheckable(self) -> bool isCheckable(self) -> bool [extrait de isCheckable.__doc__]
isChecked(self) -> bool isChecked(self) -> bool [extrait de isChecked.__doc__]
isEnabled(self) -> bool isEnabled(self) -> bool [extrait de isEnabled.__doc__]
isIconVisibleInMenu(self) -> bool isIconVisibleInMenu(self) -> bool [extrait de isIconVisibleInMenu.__doc__]
isSeparator(self) -> bool isSeparator(self) -> bool [extrait de isSeparator.__doc__]
isShortcutVisibleInContextMenu(self) -> bool isShortcutVisibleInContextMenu(self) -> bool [extrait de isShortcutVisibleInContextMenu.__doc__]
isVisible(self) -> bool isVisible(self) -> bool [extrait de isVisible.__doc__]
MenuRole
menuRole(self) -> PySide6.QtGui.QAction.MenuRole menuRole(self) -> PySide6.QtGui.QAction.MenuRole [extrait de menuRole.__doc__]
objectNameChanged
Priority
priority(self) -> PySide6.QtGui.QAction.Priority priority(self) -> PySide6.QtGui.QAction.Priority [extrait de priority.__doc__]
resetEnabled(self) -> None resetEnabled(self) -> None [extrait de resetEnabled.__doc__]
setActionGroup(self, group: PySide6.QtGui.QActionGroup) -> None setActionGroup(self, group: PySide6.QtGui.QActionGroup) -> None [extrait de setActionGroup.__doc__]
setAutoRepeat(self, arg__1: bool) -> None setAutoRepeat(self, arg__1: bool) -> None [extrait de setAutoRepeat.__doc__]
setCheckable(self, arg__1: bool) -> None setCheckable(self, arg__1: bool) -> None [extrait de setCheckable.__doc__]
setChecked(self, arg__1: bool) -> None setChecked(self, arg__1: bool) -> None [extrait de setChecked.__doc__]
setData(self, var: Any) -> None setData(self, var: Any) -> None [extrait de setData.__doc__]
setDisabled(self, b: bool) -> None setDisabled(self, b: bool) -> None [extrait de setDisabled.__doc__]
setEnabled(self, arg__1: bool) -> None setEnabled(self, arg__1: bool) -> None [extrait de setEnabled.__doc__]
setFont(self, font: Union[PySide6.QtGui.QFont, str, Sequence[str]]) -> None setFont(self, font: Union[PySide6.QtGui.QFont, str, Sequence[str]]) -> None [extrait de setFont.__doc__]
setIcon(self, icon: Union[PySide6.QtGui.QIcon, PySide6.QtGui.QPixmap]) -> None setIcon(self, icon: Union[PySide6.QtGui.QIcon, PySide6.QtGui.QPixmap]) -> None [extrait de setIcon.__doc__]
setIconText(self, text: str) -> None setIconText(self, text: str) -> None [extrait de setIconText.__doc__]
setIconVisibleInMenu(self, visible: bool) -> None setIconVisibleInMenu(self, visible: bool) -> None [extrait de setIconVisibleInMenu.__doc__]
setMenuRole(self, menuRole: PySide6.QtGui.QAction.MenuRole) -> None setMenuRole(self, menuRole: PySide6.QtGui.QAction.MenuRole) -> None [extrait de setMenuRole.__doc__]
setPriority(self, priority: PySide6.QtGui.QAction.Priority) -> None setPriority(self, priority: PySide6.QtGui.QAction.Priority) -> None [extrait de setPriority.__doc__]
setSeparator(self, b: bool) -> None setSeparator(self, b: bool) -> None [extrait de setSeparator.__doc__]
setShortcut setShortcut(self, arg__1: PySide6.QtCore.Qt.Key) -> None [extrait de setShortcut.__doc__]
setShortcutContext(self, context: PySide6.QtCore.Qt.ShortcutContext) -> None setShortcutContext(self, context: PySide6.QtCore.Qt.ShortcutContext) -> None [extrait de setShortcutContext.__doc__]
setShortcuts setShortcuts(self, arg__1: PySide6.QtGui.QKeySequence.StandardKey) -> None [extrait de setShortcuts.__doc__]
setShortcutVisibleInContextMenu(self, show: bool) -> None setShortcutVisibleInContextMenu(self, show: bool) -> None [extrait de setShortcutVisibleInContextMenu.__doc__]
setStatusTip(self, statusTip: str) -> None setStatusTip(self, statusTip: str) -> None [extrait de setStatusTip.__doc__]
setText(self, text: str) -> None setText(self, text: str) -> None [extrait de setText.__doc__]
setToolTip(self, tip: str) -> None setToolTip(self, tip: str) -> None [extrait de setToolTip.__doc__]
setVisible(self, arg__1: bool) -> None setVisible(self, arg__1: bool) -> None [extrait de setVisible.__doc__]
setWhatsThis(self, what: str) -> None setWhatsThis(self, what: str) -> None [extrait de setWhatsThis.__doc__]
shortcut(self) -> PySide6.QtGui.QKeySequence shortcut(self) -> PySide6.QtGui.QKeySequence [extrait de shortcut.__doc__]
shortcutContext(self) -> PySide6.QtCore.Qt.ShortcutContext shortcutContext(self) -> PySide6.QtCore.Qt.ShortcutContext [extrait de shortcutContext.__doc__]
shortcuts(self) -> List[PySide6.QtGui.QKeySequence] shortcuts(self) -> List[PySide6.QtGui.QKeySequence] [extrait de shortcuts.__doc__]
showStatusText(self, object: Optional[PySide6.QtCore.QObject] = None) -> bool showStatusText(self, object: Optional[PySide6.QtCore.QObject] = None) -> bool [extrait de showStatusText.__doc__]
statusTip(self) -> str statusTip(self) -> str [extrait de statusTip.__doc__]
text(self) -> str text(self) -> str [extrait de text.__doc__]
toggle(self) -> None toggle(self) -> None [extrait de toggle.__doc__]
toggled
toolTip(self) -> str toolTip(self) -> str [extrait de toolTip.__doc__]
tr
trigger(self) -> None trigger(self) -> None [extrait de trigger.__doc__]
triggered
visibleChanged
whatsThis(self) -> str whatsThis(self) -> str [extrait de whatsThis.__doc__]

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

__getattribute__, __init_subclass__, __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__, __sizeof__, __str__