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

Informations générales

Héritage

builtins.object
    Object
        QPaintDevice
builtins.object
    Object
        QObject
            QWidget
                QTabBar

Définition

class QTabBar(QWidget):

Description [extrait de QTabBar.__doc__]

QTabBar(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
LeftSidePySide6.QtWidgets.QTabBar.ButtonPosition.LeftSide
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
RightSidePySide6.QtWidgets.QTabBar.ButtonPosition.RightSide
RoundedEastPySide6.QtWidgets.QTabBar.Shape.RoundedEast
RoundedNorthPySide6.QtWidgets.QTabBar.Shape.RoundedNorth
RoundedSouthPySide6.QtWidgets.QTabBar.Shape.RoundedSouth
RoundedWestPySide6.QtWidgets.QTabBar.Shape.RoundedWest
SelectLeftTabPySide6.QtWidgets.QTabBar.SelectionBehavior.SelectLeftTab
SelectPreviousTabPySide6.QtWidgets.QTabBar.SelectionBehavior.SelectPreviousTab
SelectRightTabPySide6.QtWidgets.QTabBar.SelectionBehavior.SelectRightTab
staticMetaObject<PySide6.QtCore.QMetaObject object at 0x7f40e25b7700>
TriangularEastPySide6.QtWidgets.QTabBar.Shape.TriangularEast
TriangularNorthPySide6.QtWidgets.QTabBar.Shape.TriangularNorth
TriangularSouthPySide6.QtWidgets.QTabBar.Shape.TriangularSouth
TriangularWestPySide6.QtWidgets.QTabBar.Shape.TriangularWest

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__]
accessibleTabName(self, index: int) -> str accessibleTabName(self, index: int) -> str [extrait de accessibleTabName.__doc__]
addTab addTab(self, icon: Union[PySide6.QtGui.QIcon, PySide6.QtGui.QPixmap], text: str) -> int [extrait de addTab.__doc__]
autoHide(self) -> bool autoHide(self) -> bool [extrait de autoHide.__doc__]
ButtonPosition
changeCurrentOnDrag(self) -> bool changeCurrentOnDrag(self) -> bool [extrait de changeCurrentOnDrag.__doc__]
changeEvent(self, arg__1: PySide6.QtCore.QEvent) -> None changeEvent(self, arg__1: PySide6.QtCore.QEvent) -> None [extrait de changeEvent.__doc__]
count(self) -> int count(self) -> int [extrait de count.__doc__]
currentChanged
currentIndex(self) -> int currentIndex(self) -> int [extrait de currentIndex.__doc__]
customContextMenuRequested
destroyed
documentMode(self) -> bool documentMode(self) -> bool [extrait de documentMode.__doc__]
drawBase(self) -> bool drawBase(self) -> bool [extrait de drawBase.__doc__]
elideMode(self) -> PySide6.QtCore.Qt.TextElideMode elideMode(self) -> PySide6.QtCore.Qt.TextElideMode [extrait de elideMode.__doc__]
event(self, arg__1: PySide6.QtCore.QEvent) -> bool event(self, arg__1: PySide6.QtCore.QEvent) -> bool [extrait de event.__doc__]
expanding(self) -> bool expanding(self) -> bool [extrait de expanding.__doc__]
hideEvent(self, arg__1: PySide6.QtGui.QHideEvent) -> None hideEvent(self, arg__1: PySide6.QtGui.QHideEvent) -> None [extrait de hideEvent.__doc__]
iconSize(self) -> PySide6.QtCore.QSize iconSize(self) -> PySide6.QtCore.QSize [extrait de iconSize.__doc__]
initStyleOption(self, option: PySide6.QtWidgets.QStyleOptionTab, tabIndex: int) -> None initStyleOption(self, option: PySide6.QtWidgets.QStyleOptionTab, tabIndex: int) -> None [extrait de initStyleOption.__doc__]
insertTab insertTab(self, index: int, icon: Union[PySide6.QtGui.QIcon, PySide6.QtGui.QPixmap], text: 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__]
isTabVisible(self, index: int) -> bool isTabVisible(self, index: int) -> bool [extrait de isTabVisible.__doc__]
keyPressEvent(self, arg__1: PySide6.QtGui.QKeyEvent) -> None keyPressEvent(self, arg__1: PySide6.QtGui.QKeyEvent) -> None [extrait de keyPressEvent.__doc__]
minimumSizeHint(self) -> PySide6.QtCore.QSize minimumSizeHint(self) -> PySide6.QtCore.QSize [extrait de minimumSizeHint.__doc__]
minimumTabSizeHint(self, index: int) -> PySide6.QtCore.QSize minimumTabSizeHint(self, index: int) -> PySide6.QtCore.QSize [extrait de minimumTabSizeHint.__doc__]
mouseDoubleClickEvent(self, arg__1: PySide6.QtGui.QMouseEvent) -> None mouseDoubleClickEvent(self, arg__1: PySide6.QtGui.QMouseEvent) -> None [extrait de mouseDoubleClickEvent.__doc__]
mouseMoveEvent(self, arg__1: PySide6.QtGui.QMouseEvent) -> None mouseMoveEvent(self, arg__1: PySide6.QtGui.QMouseEvent) -> None [extrait de mouseMoveEvent.__doc__]
mousePressEvent(self, arg__1: PySide6.QtGui.QMouseEvent) -> None mousePressEvent(self, arg__1: PySide6.QtGui.QMouseEvent) -> None [extrait de mousePressEvent.__doc__]
mouseReleaseEvent(self, arg__1: PySide6.QtGui.QMouseEvent) -> None mouseReleaseEvent(self, arg__1: PySide6.QtGui.QMouseEvent) -> None [extrait de mouseReleaseEvent.__doc__]
moveTab(self, from_: int, to: int) -> None moveTab(self, from_: int, to: int) -> None [extrait de moveTab.__doc__]
objectNameChanged
paintEvent(self, arg__1: PySide6.QtGui.QPaintEvent) -> None paintEvent(self, arg__1: PySide6.QtGui.QPaintEvent) -> None [extrait de paintEvent.__doc__]
removeTab(self, index: int) -> None removeTab(self, index: int) -> None [extrait de removeTab.__doc__]
resizeEvent(self, arg__1: PySide6.QtGui.QResizeEvent) -> None resizeEvent(self, arg__1: PySide6.QtGui.QResizeEvent) -> None [extrait de resizeEvent.__doc__]
SelectionBehavior
selectionBehaviorOnRemove(self) -> PySide6.QtWidgets.QTabBar.SelectionBehavior selectionBehaviorOnRemove(self) -> PySide6.QtWidgets.QTabBar.SelectionBehavior [extrait de selectionBehaviorOnRemove.__doc__]
setAccessibleTabName(self, index: int, name: str) -> None setAccessibleTabName(self, index: int, name: str) -> None [extrait de setAccessibleTabName.__doc__]
setAutoHide(self, hide: bool) -> None setAutoHide(self, hide: bool) -> None [extrait de setAutoHide.__doc__]
setChangeCurrentOnDrag(self, change: bool) -> None setChangeCurrentOnDrag(self, change: bool) -> None [extrait de setChangeCurrentOnDrag.__doc__]
setCurrentIndex(self, index: int) -> None setCurrentIndex(self, index: int) -> None [extrait de setCurrentIndex.__doc__]
setDocumentMode(self, set: bool) -> None setDocumentMode(self, set: bool) -> None [extrait de setDocumentMode.__doc__]
setDrawBase(self, drawTheBase: bool) -> None setDrawBase(self, drawTheBase: bool) -> None [extrait de setDrawBase.__doc__]
setElideMode(self, mode: PySide6.QtCore.Qt.TextElideMode) -> None setElideMode(self, mode: PySide6.QtCore.Qt.TextElideMode) -> None [extrait de setElideMode.__doc__]
setExpanding(self, enabled: bool) -> None setExpanding(self, enabled: bool) -> None [extrait de setExpanding.__doc__]
setIconSize(self, size: PySide6.QtCore.QSize) -> None setIconSize(self, size: PySide6.QtCore.QSize) -> None [extrait de setIconSize.__doc__]
setMovable(self, movable: bool) -> None setMovable(self, movable: bool) -> None [extrait de setMovable.__doc__]
setSelectionBehaviorOnRemove(self, behavior: PySide6.QtWidgets.QTabBar.SelectionBehavior) -> None setSelectionBehaviorOnRemove(self, behavior: PySide6.QtWidgets.QTabBar.SelectionBehavior) -> None [extrait de setSelectionBehaviorOnRemove.__doc__]
setShape(self, shape: PySide6.QtWidgets.QTabBar.Shape) -> None setShape(self, shape: PySide6.QtWidgets.QTabBar.Shape) -> None [extrait de setShape.__doc__]
setTabButton(self, index: int, position: PySide6.QtWidgets.QTabBar.ButtonPosition, widget: PySide6.QtWidgets.QWidget) -> None setTabButton(self, index: int, position: PySide6.QtWidgets.QTabBar.ButtonPosition, widget: PySide6.QtWidgets.QWidget) -> None [extrait de setTabButton.__doc__]
setTabData(self, index: int, data: Any) -> None setTabData(self, index: int, data: Any) -> None [extrait de setTabData.__doc__]
setTabEnabled(self, index: int, enabled: bool) -> None setTabEnabled(self, index: int, enabled: bool) -> None [extrait de setTabEnabled.__doc__]
setTabIcon(self, index: int, icon: Union[PySide6.QtGui.QIcon, PySide6.QtGui.QPixmap]) -> None setTabIcon(self, index: int, icon: Union[PySide6.QtGui.QIcon, PySide6.QtGui.QPixmap]) -> None [extrait de setTabIcon.__doc__]
setTabsClosable(self, closable: bool) -> None setTabsClosable(self, closable: bool) -> None [extrait de setTabsClosable.__doc__]
setTabText(self, index: int, text: str) -> None setTabText(self, index: int, text: str) -> None [extrait de setTabText.__doc__]
setTabTextColor(self, index: int, color: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int]) -> None setTabTextColor(self, index: int, color: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int]) -> None [extrait de setTabTextColor.__doc__]
setTabToolTip(self, index: int, tip: str) -> None setTabToolTip(self, index: int, tip: str) -> None [extrait de setTabToolTip.__doc__]
setTabVisible(self, index: int, visible: bool) -> None setTabVisible(self, index: int, visible: bool) -> None [extrait de setTabVisible.__doc__]
setTabWhatsThis(self, index: int, text: str) -> None setTabWhatsThis(self, index: int, text: str) -> None [extrait de setTabWhatsThis.__doc__]
setUsesScrollButtons(self, useButtons: bool) -> None setUsesScrollButtons(self, useButtons: bool) -> None [extrait de setUsesScrollButtons.__doc__]
Shape
shape(self) -> PySide6.QtWidgets.QTabBar.Shape shape(self) -> PySide6.QtWidgets.QTabBar.Shape [extrait de shape.__doc__]
showEvent(self, arg__1: PySide6.QtGui.QShowEvent) -> None showEvent(self, arg__1: PySide6.QtGui.QShowEvent) -> None [extrait de showEvent.__doc__]
sizeHint(self) -> PySide6.QtCore.QSize sizeHint(self) -> PySide6.QtCore.QSize [extrait de sizeHint.__doc__]
tabAt(self, pos: PySide6.QtCore.QPoint) -> int tabAt(self, pos: PySide6.QtCore.QPoint) -> int [extrait de tabAt.__doc__]
tabBarClicked
tabBarDoubleClicked
tabButton(self, index: int, position: PySide6.QtWidgets.QTabBar.ButtonPosition) -> PySide6.QtWidgets.QWidget tabButton(self, index: int, position: PySide6.QtWidgets.QTabBar.ButtonPosition) -> PySide6.QtWidgets.QWidget [extrait de tabButton.__doc__]
tabCloseRequested
tabData(self, index: int) -> Any tabData(self, index: int) -> Any [extrait de tabData.__doc__]
tabIcon(self, index: int) -> PySide6.QtGui.QIcon tabIcon(self, index: int) -> PySide6.QtGui.QIcon [extrait de tabIcon.__doc__]
tabInserted(self, index: int) -> None tabInserted(self, index: int) -> None [extrait de tabInserted.__doc__]
tabLayoutChange(self) -> None tabLayoutChange(self) -> None [extrait de tabLayoutChange.__doc__]
tabMoved
tabRect(self, index: int) -> PySide6.QtCore.QRect tabRect(self, index: int) -> PySide6.QtCore.QRect [extrait de tabRect.__doc__]
tabRemoved(self, index: int) -> None tabRemoved(self, index: int) -> None [extrait de tabRemoved.__doc__]
tabsClosable(self) -> bool tabsClosable(self) -> bool [extrait de tabsClosable.__doc__]
tabSizeHint(self, index: int) -> PySide6.QtCore.QSize tabSizeHint(self, index: int) -> PySide6.QtCore.QSize [extrait de tabSizeHint.__doc__]
tabText(self, index: int) -> str tabText(self, index: int) -> str [extrait de tabText.__doc__]
tabTextColor(self, index: int) -> PySide6.QtGui.QColor tabTextColor(self, index: int) -> PySide6.QtGui.QColor [extrait de tabTextColor.__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__]
timerEvent(self, event: PySide6.QtCore.QTimerEvent) -> None timerEvent(self, event: PySide6.QtCore.QTimerEvent) -> None [extrait de timerEvent.__doc__]
tr
usesScrollButtons(self) -> bool usesScrollButtons(self) -> bool [extrait de usesScrollButtons.__doc__]
wheelEvent(self, event: PySide6.QtGui.QWheelEvent) -> None wheelEvent(self, event: PySide6.QtGui.QWheelEvent) -> None [extrait de wheelEvent.__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, grab, grabGesture, grabKeyboard, grabMouse, grabShortcut, graphicsEffect, graphicsProxyWidget, hasFocus, hasHeightForWidth, hasMouseTracking, hasTabletTracking, height, heightForWidth, hide, initPainter, inputMethodEvent, inputMethodHints, inputMethodQuery, insertAction, insertActions, internalWinId, isActiveWindow, isAncestorOf, isEnabled, isEnabledTo, 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, 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, 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, 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, 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__