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

Informations générales

Héritage

builtins.object
    Object
        QPaintDevice
builtins.object
    Object
        QObject
            QWidget
                QTabWidget

Définition

class QTabWidget(QWidget):

Description [extrait de QTabWidget.__doc__]

QTabWidget(self, parent: typing.Union[PySide2.QtWidgets.QWidget, 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
DrawChildrenPySide2.QtWidgets.QWidget.RenderFlag.DrawChildren
DrawWindowBackgroundPySide2.QtWidgets.QWidget.RenderFlag.DrawWindowBackground
EastPySide2.QtWidgets.QTabWidget.TabPosition.East
IgnoreMaskPySide2.QtWidgets.QWidget.RenderFlag.IgnoreMask
NorthPySide2.QtWidgets.QTabWidget.TabPosition.North
PdmDepthPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDepth
PdmDevicePixelRatioPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDevicePixelRatio
PdmDevicePixelRatioScaledPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDevicePixelRatioScaled
PdmDpiXPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDpiX
PdmDpiYPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDpiY
PdmHeightPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmHeight
PdmHeightMMPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmHeightMM
PdmNumColorsPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmNumColors
PdmPhysicalDpiXPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmPhysicalDpiX
PdmPhysicalDpiYPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmPhysicalDpiY
PdmWidthPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmWidth
PdmWidthMMPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmWidthMM
RoundedPySide2.QtWidgets.QTabWidget.TabShape.Rounded
SouthPySide2.QtWidgets.QTabWidget.TabPosition.South
staticMetaObject<PySide2.QtCore.QMetaObject object at 0x7efe35a2efc0>
TriangularPySide2.QtWidgets.QTabWidget.TabShape.Triangular
WestPySide2.QtWidgets.QTabWidget.TabPosition.West

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__]
addTab addTab(self, widget: PySide2.QtWidgets.QWidget, arg__2: str) -> int [extrait de addTab.__doc__]
changeEvent(self, arg__1: PySide2.QtCore.QEvent) changeEvent(self, arg__1: PySide2.QtCore.QEvent) [extrait de changeEvent.__doc__]
clear(self) clear(self) [extrait de clear.__doc__]
cornerWidget(self, corner: PySide2.QtCore.Qt.Corner = PySide2.QtCore.Qt.Corner.TopRightCorner) -> PySide2.QtWidgets.QWidget cornerWidget(self, corner: PySide2.QtCore.Qt.Corner = PySide2.QtCore.Qt.Corner.TopRightCorner) -> PySide2.QtWidgets.QWidget [extrait de cornerWidget.__doc__]
count(self) -> int count(self) -> int [extrait de count.__doc__]
currentChanged
currentIndex(self) -> int currentIndex(self) -> int [extrait de currentIndex.__doc__]
currentWidget(self) -> PySide2.QtWidgets.QWidget currentWidget(self) -> PySide2.QtWidgets.QWidget [extrait de currentWidget.__doc__]
customContextMenuRequested
destroyed
documentMode(self) -> bool documentMode(self) -> bool [extrait de documentMode.__doc__]
elideMode(self) -> PySide2.QtCore.Qt.TextElideMode elideMode(self) -> PySide2.QtCore.Qt.TextElideMode [extrait de elideMode.__doc__]
event(self, arg__1: PySide2.QtCore.QEvent) -> bool event(self, arg__1: PySide2.QtCore.QEvent) -> bool [extrait de event.__doc__]
hasHeightForWidth(self) -> bool hasHeightForWidth(self) -> bool [extrait de hasHeightForWidth.__doc__]
heightForWidth(self, width: int) -> int heightForWidth(self, width: int) -> int [extrait de heightForWidth.__doc__]
iconSize(self) -> PySide2.QtCore.QSize iconSize(self) -> PySide2.QtCore.QSize [extrait de iconSize.__doc__]
indexOf(self, widget: PySide2.QtWidgets.QWidget) -> int indexOf(self, widget: PySide2.QtWidgets.QWidget) -> int [extrait de indexOf.__doc__]
initStyleOption(self, option: PySide2.QtWidgets.QStyleOptionTabWidgetFrame) initStyleOption(self, option: PySide2.QtWidgets.QStyleOptionTabWidgetFrame) [extrait de initStyleOption.__doc__]
insertTab insertTab(self, index: int, widget: PySide2.QtWidgets.QWidget, arg__3: str) -> int [extrait de insertTab.__doc__]
isMovable(self) -> bool isMovable(self) -> bool [extrait de isMovable.__doc__]
isTabEnabled(self, index: int) -> bool isTabEnabled(self, index: int) -> bool [extrait de isTabEnabled.__doc__]
keyPressEvent(self, arg__1: PySide2.QtGui.QKeyEvent) keyPressEvent(self, arg__1: PySide2.QtGui.QKeyEvent) [extrait de keyPressEvent.__doc__]
minimumSizeHint(self) -> PySide2.QtCore.QSize minimumSizeHint(self) -> PySide2.QtCore.QSize [extrait de minimumSizeHint.__doc__]
objectNameChanged
paintEvent(self, arg__1: PySide2.QtGui.QPaintEvent) paintEvent(self, arg__1: PySide2.QtGui.QPaintEvent) [extrait de paintEvent.__doc__]
removeTab(self, index: int) removeTab(self, index: int) [extrait de removeTab.__doc__]
resizeEvent(self, arg__1: PySide2.QtGui.QResizeEvent) resizeEvent(self, arg__1: PySide2.QtGui.QResizeEvent) [extrait de resizeEvent.__doc__]
setCornerWidget(self, w: PySide2.QtWidgets.QWidget, corner: PySide2.QtCore.Qt.Corner = PySide2.QtCore.Qt.Corner.TopRightCorner) setCornerWidget(self, w: PySide2.QtWidgets.QWidget, corner: PySide2.QtCore.Qt.Corner = PySide2.QtCore.Qt.Corner.TopRightCorner) [extrait de setCornerWidget.__doc__]
setCurrentIndex(self, index: int) setCurrentIndex(self, index: int) [extrait de setCurrentIndex.__doc__]
setCurrentWidget(self, widget: PySide2.QtWidgets.QWidget) setCurrentWidget(self, widget: PySide2.QtWidgets.QWidget) [extrait de setCurrentWidget.__doc__]
setDocumentMode(self, set: bool) setDocumentMode(self, set: bool) [extrait de setDocumentMode.__doc__]
setElideMode(self, arg__1: PySide2.QtCore.Qt.TextElideMode) setElideMode(self, arg__1: PySide2.QtCore.Qt.TextElideMode) [extrait de setElideMode.__doc__]
setIconSize(self, size: PySide2.QtCore.QSize) setIconSize(self, size: PySide2.QtCore.QSize) [extrait de setIconSize.__doc__]
setMovable(self, movable: bool) setMovable(self, movable: bool) [extrait de setMovable.__doc__]
setTabBar(self, arg__1: PySide2.QtWidgets.QTabBar) setTabBar(self, arg__1: PySide2.QtWidgets.QTabBar) [extrait de setTabBar.__doc__]
setTabBarAutoHide(self, enabled: bool) setTabBarAutoHide(self, enabled: bool) [extrait de setTabBarAutoHide.__doc__]
setTabEnabled(self, index: int, arg__2: bool) setTabEnabled(self, index: int, arg__2: bool) [extrait de setTabEnabled.__doc__]
setTabIcon(self, index: int, icon: PySide2.QtGui.QIcon) setTabIcon(self, index: int, icon: PySide2.QtGui.QIcon) [extrait de setTabIcon.__doc__]
setTabPosition(self, arg__1: PySide2.QtWidgets.QTabWidget.TabPosition) setTabPosition(self, arg__1: PySide2.QtWidgets.QTabWidget.TabPosition) [extrait de setTabPosition.__doc__]
setTabsClosable(self, closeable: bool) setTabsClosable(self, closeable: bool) [extrait de setTabsClosable.__doc__]
setTabShape(self, s: PySide2.QtWidgets.QTabWidget.TabShape) setTabShape(self, s: PySide2.QtWidgets.QTabWidget.TabShape) [extrait de setTabShape.__doc__]
setTabText(self, index: int, arg__2: str) setTabText(self, index: int, arg__2: str) [extrait de setTabText.__doc__]
setTabToolTip(self, index: int, tip: str) setTabToolTip(self, index: int, tip: str) [extrait de setTabToolTip.__doc__]
setTabWhatsThis(self, index: int, text: str) setTabWhatsThis(self, index: int, text: str) [extrait de setTabWhatsThis.__doc__]
setUsesScrollButtons(self, useButtons: bool) setUsesScrollButtons(self, useButtons: bool) [extrait de setUsesScrollButtons.__doc__]
showEvent(self, arg__1: PySide2.QtGui.QShowEvent) showEvent(self, arg__1: PySide2.QtGui.QShowEvent) [extrait de showEvent.__doc__]
sizeHint(self) -> PySide2.QtCore.QSize sizeHint(self) -> PySide2.QtCore.QSize [extrait de sizeHint.__doc__]
tabBar(self) -> PySide2.QtWidgets.QTabBar tabBar(self) -> PySide2.QtWidgets.QTabBar [extrait de tabBar.__doc__]
tabBarAutoHide(self) -> bool tabBarAutoHide(self) -> bool [extrait de tabBarAutoHide.__doc__]
tabBarClicked
tabBarDoubleClicked
tabCloseRequested
tabIcon(self, index: int) -> PySide2.QtGui.QIcon tabIcon(self, index: int) -> PySide2.QtGui.QIcon [extrait de tabIcon.__doc__]
tabInserted(self, index: int) tabInserted(self, index: int) [extrait de tabInserted.__doc__]
TabPosition
tabPosition(self) -> PySide2.QtWidgets.QTabWidget.TabPosition tabPosition(self) -> PySide2.QtWidgets.QTabWidget.TabPosition [extrait de tabPosition.__doc__]
tabRemoved(self, index: int) tabRemoved(self, index: int) [extrait de tabRemoved.__doc__]
tabsClosable(self) -> bool tabsClosable(self) -> bool [extrait de tabsClosable.__doc__]
TabShape
tabShape(self) -> PySide2.QtWidgets.QTabWidget.TabShape tabShape(self) -> PySide2.QtWidgets.QTabWidget.TabShape [extrait de tabShape.__doc__]
tabText(self, index: int) -> str tabText(self, index: int) -> str [extrait de tabText.__doc__]
tabToolTip(self, index: int) -> str tabToolTip(self, index: int) -> str [extrait de tabToolTip.__doc__]
tabWhatsThis(self, index: int) -> str tabWhatsThis(self, index: int) -> str [extrait de tabWhatsThis.__doc__]
usesScrollButtons(self) -> bool usesScrollButtons(self) -> bool [extrait de usesScrollButtons.__doc__]
widget(self, index: int) -> PySide2.QtWidgets.QWidget widget(self, index: int) -> PySide2.QtWidgets.QWidget [extrait de widget.__doc__]
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, focusInEvent, focusNextChild, focusNextPrevChild, focusOutEvent, focusPolicy, focusPreviousChild, focusProxy, focusWidget, font, fontInfo, fontMetrics, foregroundRole, frameGeometry, frameSize, geometry, getContentsMargins, grab, grabGesture, grabKeyboard, grabMouse, grabShortcut, graphicsEffect, graphicsProxyWidget, hasFocus, hasMouseTracking, hasTabletTracking, height, hide, hideEvent, initPainter, inputMethodEvent, inputMethodHints, inputMethodQuery, insertAction, insertActions, internalWinId, isActiveWindow, isAncestorOf, isEnabled, isEnabledTo, isEnabledToTLW, isFullScreen, isHidden, isLeftToRight, isMaximized, isMinimized, isModal, isRightToLeft, isTopLevel, isVisible, isVisibleTo, isWindow, isWindowModified, keyboardGrabber, keyReleaseEvent, layout, layoutDirection, leaveEvent, locale, lower, mapFrom, mapFromGlobal, mapFromParent, mapTo, mapToGlobal, mapToParent, mask, maximumHeight, maximumSize, maximumWidth, metric, minimumHeight, minimumSize, minimumWidth, mouseDoubleClickEvent, mouseGrabber, mouseMoveEvent, mousePressEvent, mouseReleaseEvent, 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, 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, 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, showFullScreen, showMaximized, showMinimized, showNormal, size, 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, 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__, __repr__, __sizeof__, __str__