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

Classe « QAbstractButton »

Informations générales

Héritage

builtins.object
    Object
        QPaintDevice
builtins.object
    Object
        QObject
            QWidget
                QAbstractButton

Définition

class QAbstractButton(QWidget):

Description [extrait de QAbstractButton.__doc__]

QAbstractButton(self, parent: Optional[PySide6.QtWidgets.QWidget] = 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__]
__init__(self, parent: Optional[PySide6.QtWidgets.QWidget] = None) -> None __init__(self, parent: Optional[PySide6.QtWidgets.QWidget] = None) -> None [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
DrawChildrenPySide6.QtWidgets.QWidget.RenderFlag.DrawChildren
DrawWindowBackgroundPySide6.QtWidgets.QWidget.RenderFlag.DrawWindowBackground
IgnoreMaskPySide6.QtWidgets.QWidget.RenderFlag.IgnoreMask
PdmDepthPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmDepth
PdmDevicePixelRatioPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmDevicePixelRatio
PdmDevicePixelRatioScaledPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmDevicePixelRatioScaled
PdmDpiXPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmDpiX
PdmDpiYPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmDpiY
PdmHeightPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmHeight
PdmHeightMMPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmHeightMM
PdmNumColorsPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmNumColors
PdmPhysicalDpiXPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmPhysicalDpiX
PdmPhysicalDpiYPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmPhysicalDpiY
PdmWidthPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmWidth
PdmWidthMMPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmWidthMM
staticMetaObject<PySide6.QtCore.QMetaObject object at 0x7f40dfe3dd80>

Attributs statiques hérités de la classe QPaintDevice

painters

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__]
animateClick(self) -> None animateClick(self) -> None [extrait de animateClick.__doc__]
autoExclusive(self) -> bool autoExclusive(self) -> bool [extrait de autoExclusive.__doc__]
autoRepeat(self) -> bool autoRepeat(self) -> bool [extrait de autoRepeat.__doc__]
autoRepeatDelay(self) -> int autoRepeatDelay(self) -> int [extrait de autoRepeatDelay.__doc__]
autoRepeatInterval(self) -> int autoRepeatInterval(self) -> int [extrait de autoRepeatInterval.__doc__]
changeEvent(self, e: PySide6.QtCore.QEvent) -> None changeEvent(self, e: PySide6.QtCore.QEvent) -> None [extrait de changeEvent.__doc__]
checkStateSet(self) -> None checkStateSet(self) -> None [extrait de checkStateSet.__doc__]
click(self) -> None click(self) -> None [extrait de click.__doc__]
clicked
customContextMenuRequested
destroyed
event(self, e: PySide6.QtCore.QEvent) -> bool event(self, e: PySide6.QtCore.QEvent) -> bool [extrait de event.__doc__]
focusInEvent(self, e: PySide6.QtGui.QFocusEvent) -> None focusInEvent(self, e: PySide6.QtGui.QFocusEvent) -> None [extrait de focusInEvent.__doc__]
focusOutEvent(self, e: PySide6.QtGui.QFocusEvent) -> None focusOutEvent(self, e: PySide6.QtGui.QFocusEvent) -> None [extrait de focusOutEvent.__doc__]
group(self) -> PySide6.QtWidgets.QButtonGroup group(self) -> PySide6.QtWidgets.QButtonGroup [extrait de group.__doc__]
hitButton(self, pos: PySide6.QtCore.QPoint) -> bool hitButton(self, pos: PySide6.QtCore.QPoint) -> bool [extrait de hitButton.__doc__]
icon(self) -> PySide6.QtGui.QIcon icon(self) -> PySide6.QtGui.QIcon [extrait de icon.__doc__]
iconSize(self) -> PySide6.QtCore.QSize iconSize(self) -> PySide6.QtCore.QSize [extrait de iconSize.__doc__]
isCheckable(self) -> bool isCheckable(self) -> bool [extrait de isCheckable.__doc__]
isChecked(self) -> bool isChecked(self) -> bool [extrait de isChecked.__doc__]
isDown(self) -> bool isDown(self) -> bool [extrait de isDown.__doc__]
keyPressEvent(self, e: PySide6.QtGui.QKeyEvent) -> None keyPressEvent(self, e: PySide6.QtGui.QKeyEvent) -> None [extrait de keyPressEvent.__doc__]
keyReleaseEvent(self, e: PySide6.QtGui.QKeyEvent) -> None keyReleaseEvent(self, e: PySide6.QtGui.QKeyEvent) -> None [extrait de keyReleaseEvent.__doc__]
mouseMoveEvent(self, e: PySide6.QtGui.QMouseEvent) -> None mouseMoveEvent(self, e: PySide6.QtGui.QMouseEvent) -> None [extrait de mouseMoveEvent.__doc__]
mousePressEvent(self, e: PySide6.QtGui.QMouseEvent) -> None mousePressEvent(self, e: PySide6.QtGui.QMouseEvent) -> None [extrait de mousePressEvent.__doc__]
mouseReleaseEvent(self, e: PySide6.QtGui.QMouseEvent) -> None mouseReleaseEvent(self, e: PySide6.QtGui.QMouseEvent) -> None [extrait de mouseReleaseEvent.__doc__]
nextCheckState(self) -> None nextCheckState(self) -> None [extrait de nextCheckState.__doc__]
objectNameChanged
paintEvent(self, e: PySide6.QtGui.QPaintEvent) -> None paintEvent(self, e: PySide6.QtGui.QPaintEvent) -> None [extrait de paintEvent.__doc__]
pressed
released
setAutoExclusive(self, arg__1: bool) -> None setAutoExclusive(self, arg__1: bool) -> None [extrait de setAutoExclusive.__doc__]
setAutoRepeat(self, arg__1: bool) -> None setAutoRepeat(self, arg__1: bool) -> None [extrait de setAutoRepeat.__doc__]
setAutoRepeatDelay(self, arg__1: int) -> None setAutoRepeatDelay(self, arg__1: int) -> None [extrait de setAutoRepeatDelay.__doc__]
setAutoRepeatInterval(self, arg__1: int) -> None setAutoRepeatInterval(self, arg__1: int) -> None [extrait de setAutoRepeatInterval.__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__]
setDown(self, arg__1: bool) -> None setDown(self, arg__1: bool) -> None [extrait de setDown.__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__]
setIconSize(self, size: PySide6.QtCore.QSize) -> None setIconSize(self, size: PySide6.QtCore.QSize) -> None [extrait de setIconSize.__doc__]
setShortcut setShortcut(self, arg__1: PySide6.QtCore.Qt.Key) -> None [extrait de setShortcut.__doc__]
setText(self, text: str) -> None setText(self, text: str) -> None [extrait de setText.__doc__]
shortcut(self) -> PySide6.QtGui.QKeySequence shortcut(self) -> PySide6.QtGui.QKeySequence [extrait de shortcut.__doc__]
text(self) -> str text(self) -> str [extrait de text.__doc__]
timerEvent(self, e: PySide6.QtCore.QTimerEvent) -> None timerEvent(self, e: PySide6.QtCore.QTimerEvent) -> None [extrait de timerEvent.__doc__]
toggle(self) -> None toggle(self) -> None [extrait de toggle.__doc__]
toggled
tr
windowIconChanged
windowIconTextChanged
windowTitleChanged

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

__init_subclass__, __repr__, __subclasshook__, acceptDrops, accessibleDescription, accessibleName, actionEvent, actions, activateWindow, addAction, addActions, adjustSize, autoFillBackground, backgroundRole, backingStore, baseSize, childAt, childrenRect, childrenRegion, clearFocus, clearMask, close, closeEvent, contentsMargins, contentsRect, contextMenuEvent, contextMenuPolicy, create, createWindowContainer, createWinId, cursor, destroy, devType, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, effectiveWinId, ensurePolished, enterEvent, find, focusNextChild, focusNextPrevChild, focusPolicy, focusPreviousChild, focusProxy, focusWidget, font, fontInfo, fontMetrics, foregroundRole, frameGeometry, frameSize, geometry, grab, grabGesture, grabKeyboard, grabMouse, grabShortcut, graphicsEffect, graphicsProxyWidget, hasFocus, hasHeightForWidth, hasMouseTracking, hasTabletTracking, height, heightForWidth, hide, hideEvent, initPainter, inputMethodEvent, inputMethodHints, inputMethodQuery, insertAction, insertActions, internalWinId, isActiveWindow, isAncestorOf, isEnabled, isEnabledTo, isFullScreen, isHidden, isLeftToRight, isMaximized, isMinimized, isModal, isRightToLeft, isTopLevel, isVisible, isVisibleTo, isWindow, isWindowModified, keyboardGrabber, layout, layoutDirection, leaveEvent, locale, lower, mapFrom, mapFromGlobal, mapFromParent, mapTo, mapToGlobal, mapToParent, mask, maximumHeight, maximumSize, maximumWidth, metric, minimumHeight, minimumSize, minimumSizeHint, minimumWidth, mouseDoubleClickEvent, mouseGrabber, move, moveEvent, nativeEvent, nativeParentWidget, nextInFocusChain, normalGeometry, overrideWindowFlags, overrideWindowState, paintEngine, palette, parentWidget, pos, previousInFocusChain, raise_, rect, redirected, releaseKeyboard, releaseMouse, releaseShortcut, removeAction, render, RenderFlag, RenderFlags, repaint, resize, resizeEvent, restoreGeometry, saveGeometry, screen, scroll, setAcceptDrops, setAccessibleDescription, setAccessibleName, setAttribute, setAutoFillBackground, setBackgroundRole, setBaseSize, setContentsMargins, setContextMenuPolicy, setCursor, setDisabled, setEnabled, setFixedHeight, setFixedSize, setFixedWidth, setFocus, setFocusPolicy, setFocusProxy, setFont, setForegroundRole, setGeometry, setGraphicsEffect, setHidden, setInputMethodHints, setLayout, setLayoutDirection, setLocale, setMask, setMaximumHeight, setMaximumSize, setMaximumWidth, setMinimumHeight, setMinimumSize, setMinimumWidth, setMouseTracking, setPalette, setParent, setScreen, setShortcutAutoRepeat, setShortcutEnabled, setSizeIncrement, setSizePolicy, setStatusTip, setStyle, setStyleSheet, setTabletTracking, setTabOrder, setToolTip, setToolTipDuration, setUpdatesEnabled, setVisible, setWhatsThis, setWindowFilePath, setWindowFlag, setWindowFlags, setWindowIcon, setWindowIconText, setWindowModality, setWindowModified, setWindowOpacity, setWindowRole, setWindowState, setWindowTitle, sharedPainter, show, showEvent, showFullScreen, showMaximized, showMinimized, showNormal, size, sizeHint, sizeIncrement, sizePolicy, stackUnder, statusTip, style, styleSheet, tabletEvent, testAttribute, toolTip, toolTipDuration, topLevelWidget, underMouse, ungrabGesture, unsetCursor, unsetLayoutDirection, unsetLocale, update, updateGeometry, updateMicroFocus, updatesEnabled, visibleRegion, whatsThis, wheelEvent, width, window, windowFilePath, windowFlags, windowHandle, windowIcon, windowIconText, windowModality, windowOpacity, windowRole, windowState, windowTitle, windowType, winId, x, y

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

__init_subclass__, __subclasshook__, colorCount, depth, devicePixelRatio, devicePixelRatioF, devicePixelRatioFScale, devType, height, heightMM, initPainter, logicalDpiX, logicalDpiY, metric, PaintDeviceMetric, paintEngine, paintingActive, physicalDpiX, physicalDpiY, redirected, sharedPainter, width, widthMM

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

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__