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 « PySide2.QtWidgets »

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: PySide2.QtGui.QIcon, text: str, parent: typing.Union[PySide2.QtCore.QObject, NoneType] = None)
QAction(self, parent: typing.Union[PySide2.QtCore.QObject, NoneType] = None)
QAction(self, text: str, parent: typing.Union[PySide2.QtCore.QObject, NoneType] = 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__]
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
AboutQtRolePySide2.QtWidgets.QAction.MenuRole.AboutQtRole
AboutRolePySide2.QtWidgets.QAction.MenuRole.AboutRole
ApplicationSpecificRolePySide2.QtWidgets.QAction.MenuRole.ApplicationSpecificRole
HighPriorityPySide2.QtWidgets.QAction.Priority.HighPriority
HoverPySide2.QtWidgets.QAction.ActionEvent.Hover
LowPriorityPySide2.QtWidgets.QAction.Priority.LowPriority
NormalPriorityPySide2.QtWidgets.QAction.Priority.NormalPriority
NoRolePySide2.QtWidgets.QAction.MenuRole.NoRole
PreferencesRolePySide2.QtWidgets.QAction.MenuRole.PreferencesRole
QuitRolePySide2.QtWidgets.QAction.MenuRole.QuitRole
staticMetaObject<PySide2.QtCore.QMetaObject object at 0x7efe35a4b540>
TextHeuristicRolePySide2.QtWidgets.QAction.MenuRole.TextHeuristicRole
TriggerPySide2.QtWidgets.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) -> PySide2.QtWidgets.QActionGroup actionGroup(self) -> PySide2.QtWidgets.QActionGroup [extrait de actionGroup.__doc__]
activate(self, event: PySide2.QtWidgets.QAction.ActionEvent) activate(self, event: PySide2.QtWidgets.QAction.ActionEvent) [extrait de activate.__doc__]
associatedGraphicsWidgets(self) -> typing.List[PySide2.QtWidgets.QGraphicsWidget] associatedGraphicsWidgets(self) -> typing.List[PySide2.QtWidgets.QGraphicsWidget] [extrait de associatedGraphicsWidgets.__doc__]
associatedWidgets(self) -> typing.List[PySide2.QtWidgets.QWidget] associatedWidgets(self) -> typing.List[PySide2.QtWidgets.QWidget] [extrait de associatedWidgets.__doc__]
autoRepeat(self) -> bool autoRepeat(self) -> bool [extrait de autoRepeat.__doc__]
changed
data(self) -> typing.Any data(self) -> typing.Any [extrait de data.__doc__]
destroyed
event(self, arg__1: PySide2.QtCore.QEvent) -> bool event(self, arg__1: PySide2.QtCore.QEvent) -> bool [extrait de event.__doc__]
font(self) -> PySide2.QtGui.QFont font(self) -> PySide2.QtGui.QFont [extrait de font.__doc__]
hover(self) hover(self) [extrait de hover.__doc__]
hovered
icon(self) -> PySide2.QtGui.QIcon icon(self) -> PySide2.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__]
menu(self) -> PySide2.QtWidgets.QMenu menu(self) -> PySide2.QtWidgets.QMenu [extrait de menu.__doc__]
MenuRole
menuRole(self) -> PySide2.QtWidgets.QAction.MenuRole menuRole(self) -> PySide2.QtWidgets.QAction.MenuRole [extrait de menuRole.__doc__]
objectNameChanged
parentWidget(self) -> PySide2.QtWidgets.QWidget parentWidget(self) -> PySide2.QtWidgets.QWidget [extrait de parentWidget.__doc__]
Priority
priority(self) -> PySide2.QtWidgets.QAction.Priority priority(self) -> PySide2.QtWidgets.QAction.Priority [extrait de priority.__doc__]
setActionGroup(self, group: PySide2.QtWidgets.QActionGroup) setActionGroup(self, group: PySide2.QtWidgets.QActionGroup) [extrait de setActionGroup.__doc__]
setAutoRepeat(self, arg__1: bool) setAutoRepeat(self, arg__1: bool) [extrait de setAutoRepeat.__doc__]
setCheckable(self, arg__1: bool) setCheckable(self, arg__1: bool) [extrait de setCheckable.__doc__]
setChecked(self, arg__1: bool) setChecked(self, arg__1: bool) [extrait de setChecked.__doc__]
setData(self, var: typing.Any) setData(self, var: typing.Any) [extrait de setData.__doc__]
setDisabled(self, b: bool) setDisabled(self, b: bool) [extrait de setDisabled.__doc__]
setEnabled(self, arg__1: bool) setEnabled(self, arg__1: bool) [extrait de setEnabled.__doc__]
setFont(self, font: PySide2.QtGui.QFont) setFont(self, font: PySide2.QtGui.QFont) [extrait de setFont.__doc__]
setIcon(self, icon: PySide2.QtGui.QIcon) setIcon(self, icon: PySide2.QtGui.QIcon) [extrait de setIcon.__doc__]
setIconText(self, text: str) setIconText(self, text: str) [extrait de setIconText.__doc__]
setIconVisibleInMenu(self, visible: bool) setIconVisibleInMenu(self, visible: bool) [extrait de setIconVisibleInMenu.__doc__]
setMenu(self, menu: PySide2.QtWidgets.QMenu) setMenu(self, menu: PySide2.QtWidgets.QMenu) [extrait de setMenu.__doc__]
setMenuRole(self, menuRole: PySide2.QtWidgets.QAction.MenuRole) setMenuRole(self, menuRole: PySide2.QtWidgets.QAction.MenuRole) [extrait de setMenuRole.__doc__]
setPriority(self, priority: PySide2.QtWidgets.QAction.Priority) setPriority(self, priority: PySide2.QtWidgets.QAction.Priority) [extrait de setPriority.__doc__]
setSeparator(self, b: bool) setSeparator(self, b: bool) [extrait de setSeparator.__doc__]
setShortcut(self, shortcut: PySide2.QtGui.QKeySequence) setShortcut(self, shortcut: PySide2.QtGui.QKeySequence) [extrait de setShortcut.__doc__]
setShortcutContext(self, context: PySide2.QtCore.Qt.ShortcutContext) setShortcutContext(self, context: PySide2.QtCore.Qt.ShortcutContext) [extrait de setShortcutContext.__doc__]
setShortcuts setShortcuts(self, arg__1: PySide2.QtGui.QKeySequence.StandardKey) [extrait de setShortcuts.__doc__]
setShortcutVisibleInContextMenu(self, show: bool) setShortcutVisibleInContextMenu(self, show: bool) [extrait de setShortcutVisibleInContextMenu.__doc__]
setStatusTip(self, statusTip: str) setStatusTip(self, statusTip: str) [extrait de setStatusTip.__doc__]
setText(self, text: str) setText(self, text: str) [extrait de setText.__doc__]
setToolTip(self, tip: str) setToolTip(self, tip: str) [extrait de setToolTip.__doc__]
setVisible(self, arg__1: bool) setVisible(self, arg__1: bool) [extrait de setVisible.__doc__]
setWhatsThis(self, what: str) setWhatsThis(self, what: str) [extrait de setWhatsThis.__doc__]
shortcut(self) -> PySide2.QtGui.QKeySequence shortcut(self) -> PySide2.QtGui.QKeySequence [extrait de shortcut.__doc__]
shortcutContext(self) -> PySide2.QtCore.Qt.ShortcutContext shortcutContext(self) -> PySide2.QtCore.Qt.ShortcutContext [extrait de shortcutContext.__doc__]
shortcuts(self) -> typing.List[PySide2.QtGui.QKeySequence] shortcuts(self) -> typing.List[PySide2.QtGui.QKeySequence] [extrait de shortcuts.__doc__]
showStatusText(self, widget: typing.Union[PySide2.QtWidgets.QWidget, NoneType] = None) -> bool showStatusText(self, widget: typing.Union[PySide2.QtWidgets.QWidget, NoneType] = 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) toggle(self) [extrait de toggle.__doc__]
toggled
toolTip(self) -> str toolTip(self) -> str [extrait de toolTip.__doc__]
trigger(self) trigger(self) [extrait de trigger.__doc__]
triggered
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, registerUserData, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr

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

__init_subclass__, __subclasshook__

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

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