PythonQt.QtGui.QTabBar · declarations 002
Back to PythonQt.QtGui.QTabBar
movable
instance-attribute
movable: Any
Qt 5 reference:
movable : bool
This property holds whether the user can move the tabs within the tabbar area.
By default, this property is false;
This property was introduced in Qt 4.5.
Access functions:
| bool | isMovable() const |
|---|---|
| void | setMovable(bool movable) |
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#movable
moveTab
moveTab(*args: Any, **kwargs: Any) -> None
X.moveTab(from, to)
Supplemental documentation: Qt 5 reference:
void QTabBar::moveTab(int from, int to)
Moves the item at index position from to index position to.
This function was introduced in Qt 4.5.
See also tabMoved() and tabLayoutChange().
Upstream PySide2 reference signatures (binding differences may apply):
moveTab(self, from_: int, to: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#moveTab
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTabBar.objectNameChanged; argument details are not documented.
paintEvent
paintEvent(arg__1: Any) -> None
X.paintEvent(arg__1)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QTabBar::paintEvent(QPaintEvent *)
Reimplements: QWidget::paintEvent(QPaintEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
paintEvent(self, arg__1: PySide2.QtGui.QPaintEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#paintEvent
removeTab
removeTab(index: int) -> None
X.removeTab(index)
Supplemental documentation: Qt 5 reference:
void QTabBar::removeTab(int index)
Removes the tab at position index.
See also SelectionBehavior.
Upstream PySide2 reference signatures (binding differences may apply):
removeTab(self, index: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#removeTab
resizeEvent
resizeEvent(arg__1: Any) -> None
X.resizeEvent(arg__1)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QTabBar::resizeEvent(QResizeEvent *)
Reimplements: QWidget::resizeEvent(QResizeEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
resizeEvent(self, arg__1: PySide2.QtGui.QResizeEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#resizeEvent
selectionBehaviorOnRemove
instance-attribute
selectionBehaviorOnRemove: Any
Qt 5 reference:
selectionBehaviorOnRemove : SelectionBehavior
What tab should be set as current when removeTab is called if the removed tab is also the current tab.
By default the value is SelectRightTab.
This property was introduced in Qt 4.5.
Access functions:
| QTabBar::SelectionBehavior | selectionBehaviorOnRemove() const |
|---|---|
| void | setSelectionBehaviorOnRemove(QTabBar::SelectionBehavior behavior) |
See also removeTab().
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#selectionBehaviorOnRemove
setAutoHide
setAutoHide(hide: bool) -> None
X.setAutoHide(hide)
Upstream PySide2 reference signatures (binding differences may apply):
setAutoHide(self, hide: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#setAutoHide
setChangeCurrentOnDrag
setChangeCurrentOnDrag(change: bool) -> None
X.setChangeCurrentOnDrag(change)
Upstream PySide2 reference signatures (binding differences may apply):
setChangeCurrentOnDrag(self, change: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#setChangeCurrentOnDrag
setCurrentIndex
setCurrentIndex(index: int) -> None
X.setCurrentIndex(index)
Upstream PySide2 reference signatures (binding differences may apply):
setCurrentIndex(self, index: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#setCurrentIndex
setDocumentMode
setDocumentMode(set: bool) -> None
X.setDocumentMode(set)
Upstream PySide2 reference signatures (binding differences may apply):
setDocumentMode(self, set: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#setDocumentMode
setDrawBase
setDrawBase(drawTheBase: bool) -> None
X.setDrawBase(drawTheBase)
Upstream PySide2 reference signatures (binding differences may apply):
setDrawBase(self, drawTheBase: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#setDrawBase
setElideMode
setElideMode(arg__1: Any) -> None
X.setElideMode(arg__1)
Upstream PySide2 reference signatures (binding differences may apply):
setElideMode(self, mode: PySide2.QtCore.Qt.TextElideMode) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#setElideMode
setExpanding
setExpanding(enabled: bool) -> None
X.setExpanding(enabled)
Upstream PySide2 reference signatures (binding differences may apply):
setExpanding(self, enabled: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#setExpanding
setIconSize
setIconSize(size: Any) -> None
X.setIconSize(size)
Upstream PySide2 reference signatures (binding differences may apply):
setIconSize(self, size: PySide2.QtCore.QSize) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#setIconSize
setMovable
setMovable(movable: bool) -> None
X.setMovable(movable)
Upstream PySide2 reference signatures (binding differences may apply):
setMovable(self, movable: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#setMovable
setSelectionBehaviorOnRemove
setSelectionBehaviorOnRemove(behavior: Any) -> None
X.setSelectionBehaviorOnRemove(behavior)
Upstream PySide2 reference signatures (binding differences may apply):
setSelectionBehaviorOnRemove(self, behavior: PySide2.QtWidgets.QTabBar.SelectionBehavior) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#setSelectionBehaviorOnRemove
setShape
setShape(shape: Any) -> None
X.setShape(shape)
Upstream PySide2 reference signatures (binding differences may apply):
setShape(self, shape: PySide2.QtWidgets.QTabBar.Shape) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#setShape
setTabButton
setTabButton(index: int, position: Any, widget: Any) -> None
X.setTabButton(index, position, widget)
Supplemental documentation: Qt 5 reference:
void QTabBar::setTabButton(int index, QTabBar::ButtonPosition position, QWidget *widget)
Sets widget on the tab index. The widget is placed on the left or right hand side depending upon the position.
Any previously set widget in position is hidden.
The tab bar will take ownership of the widget and so all widgets set here will be
deleted by the tab bar when it is destroyed unless you separately reparent the widget
after setting some other widget (or nullptr).
This function was introduced in Qt 4.5.
See also tabButton() and tabsClosable().
Upstream PySide2 reference signatures (binding differences may apply):
setTabButton(self, index: int, position: PySide2.QtWidgets.QTabBar.ButtonPosition, widget: PySide2.QtWidgets.QWidget) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#setTabButton
setTabData
setTabData(index: int, data: Any) -> None
X.setTabData(index, data)
Supplemental documentation: Qt 5 reference:
void QTabBar::setTabData(int index, const QVariant \&data)
Sets the data of the tab at position index to data.
See also tabData().
Upstream PySide2 reference signatures (binding differences may apply):
setTabData(self, index: int, data: typing.Any) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#setTabData
setTabEnabled
setTabEnabled(index: int, arg__2: Any) -> None
X.setTabEnabled(index, arg__2)
Supplemental documentation: Qt 5 reference:
void QTabBar::setTabEnabled(int index, bool enabled)
If enabled is true then the tab at position index is enabled; otherwise the item at position index is disabled.
See also isTabEnabled().
Upstream PySide2 reference signatures (binding differences may apply):
setTabEnabled(self, index: int, enabled: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#setTabEnabled
setTabIcon
setTabIcon(index: int, icon: Any) -> None
X.setTabIcon(index, icon)
Supplemental documentation: Qt 5 reference:
void QTabBar::setTabIcon(int index, const QIcon \&icon)
Sets the icon of the tab at position index to icon.
See also tabIcon().
Upstream PySide2 reference signatures (binding differences may apply):
setTabIcon(self, index: int, icon: PySide2.QtGui.QIcon) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#setTabIcon
setTabText
setTabText(index: int, text: str) -> None
X.setTabText(index, text)
Supplemental documentation: Qt 5 reference:
void QTabBar::setTabText(int index, const QString \&text)
Sets the text of the tab at position index to text.
See also tabText().
Upstream PySide2 reference signatures (binding differences may apply):
setTabText(self, index: int, text: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#setTabText
setTabTextColor
setTabTextColor(index: int, color: Any) -> None
X.setTabTextColor(index, color)
Supplemental documentation: Qt 5 reference:
void QTabBar::setTabTextColor(int index, const QColor \&color)
Sets the color of the text in the tab with the given index to the specified color.
If an invalid color is specified, the tab will use the QTabBar foreground role instead.
See also tabTextColor().
Upstream PySide2 reference signatures (binding differences may apply):
setTabTextColor(self, index: int, color: PySide2.QtGui.QColor) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#setTabTextColor
setTabToolTip
setTabToolTip(index: int, tip: str) -> None
X.setTabToolTip(index, tip)
Supplemental documentation: Qt 5 reference:
void QTabBar::setTabToolTip(int index, const QString \&tip)
Sets the tool tip of the tab at position index to tip.
See also tabToolTip().
Upstream PySide2 reference signatures (binding differences may apply):
setTabToolTip(self, index: int, tip: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#setTabToolTip
setTabWhatsThis
setTabWhatsThis(index: int, text: str) -> None
X.setTabWhatsThis(index, text)
Supplemental documentation: Qt 5 reference:
void QTabBar::setTabWhatsThis(int index, const QString \&text)
Sets the What's This help text of the tab at position index to text.
This function was introduced in Qt 4.1.
See also tabWhatsThis().
Upstream PySide2 reference signatures (binding differences may apply):
setTabWhatsThis(self, index: int, text: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#setTabWhatsThis
setTabsClosable
setTabsClosable(closable: bool) -> None
X.setTabsClosable(closable)
Upstream PySide2 reference signatures (binding differences may apply):
setTabsClosable(self, closable: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#setTabsClosable
setUsesScrollButtons
setUsesScrollButtons(useButtons: bool) -> None
X.setUsesScrollButtons(useButtons)
Upstream PySide2 reference signatures (binding differences may apply):
setUsesScrollButtons(self, useButtons: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#setUsesScrollButtons
shape
instance-attribute
shape: Any
Qt 5 reference:
shape : Shape
This property holds the shape of the tabs in the tab bar
Possible values for this property are described by the Shape enum.
Access functions:
| QTabBar::Shape | shape() const |
|---|---|
| void | setShape(QTabBar::Shape shape) |
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#shape
showEvent
showEvent(arg__1: Any) -> None
X.showEvent(arg__1)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QTabBar::showEvent(QShowEvent *)
Reimplements: QWidget::showEvent(QShowEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
showEvent(self, arg__1: PySide2.QtGui.QShowEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#showEvent
sizeHint
instance-attribute
sizeHint: QSize
Qt 5 reference:
[override virtual] QSize QTabBar::sizeHint() const
Reimplements an access function for property: QWidget::sizeHint.
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#sizeHint
tabAt
tabAt(pos: Any) -> int
X.tabAt(pos) -> int
Supplemental documentation: Qt 5 reference:
int QTabBar::tabAt(const QPoint \&position) const
Returns the index of the tab that covers position or -1 if no tab covers position;
This function was introduced in Qt 4.3.
Upstream PySide2 reference signatures (binding differences may apply):
tabAt(self, pos: PySide2.QtCore.QPoint) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#tabAt
tabBarClicked
tabBarClicked(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTabBar.tabBarClicked; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QTabBar::tabBarClicked(int index)
This signal is emitted when user clicks on a tab at an index.
index is the index of a clicked tab, or -1 if no tab is under the cursor.
This function was introduced in Qt 5.2.
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#tabBarClicked
tabBarDoubleClicked
tabBarDoubleClicked(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTabBar.tabBarDoubleClicked; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QTabBar::tabBarDoubleClicked(int index)
This signal is emitted when the user double clicks on a tab at index.
index refers to the tab clicked, or -1 if no tab is under the cursor.
This function was introduced in Qt 5.2.
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#tabBarDoubleClicked
tabButton
tabButton(index: int, position: Any) -> Any
X.tabButton(index, position) -> PythonQt.QtGui.QWidget
Supplemental documentation: Qt 5 reference:
QWidget *QTabBar::tabButton(int index, QTabBar::ButtonPosition position) const
Returns the widget set a tab index and position or nullptr if one is not set.
See also setTabButton().
Upstream PySide2 reference signatures (binding differences may apply):
tabButton(self, index: int, position: PySide2.QtWidgets.QTabBar.ButtonPosition) -> PySide2.QtWidgets.QWidget
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#tabButton
tabCloseRequested
tabCloseRequested(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTabBar.tabCloseRequested; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QTabBar::tabCloseRequested(int index)
This signal is emitted when the close button on a tab is clicked. The index is the index that should be removed.
This function was introduced in Qt 4.5.
See also setTabsClosable().
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#tabCloseRequested
tabData
tabData(index: int) -> Any
X.tabData(index) -> object
Supplemental documentation: Qt 5 reference:
QVariant QTabBar::tabData(int index) const
Returns the data of the tab at position index, or a null variant if index is out of range.
See also setTabData().
Upstream PySide2 reference signatures (binding differences may apply):
tabData(self, index: int) -> typing.Any
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#tabData
tabIcon
tabIcon(index: int) -> Any
X.tabIcon(index) -> PythonQt.QtGui.QIcon
Supplemental documentation: Qt 5 reference:
QIcon QTabBar::tabIcon(int index) const
Returns the icon of the tab at position index, or a null icon if index is out of range.
See also setTabIcon().
Upstream PySide2 reference signatures (binding differences may apply):
tabIcon(self, index: int) -> PySide2.QtGui.QIcon
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#tabIcon
tabInserted
tabInserted(index: int) -> None
X.tabInserted(index)
Supplemental documentation: Qt 5 reference:
[virtual protected] void QTabBar::tabInserted(int index)
This virtual handler is called after a new tab was added or inserted at position index.
See also tabRemoved().
Upstream PySide2 reference signatures (binding differences may apply):
tabInserted(self, index: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#tabInserted
tabLayoutChange
tabLayoutChange() -> None
X.tabLayoutChange()
Supplemental documentation: Qt 5 reference:
[virtual protected] void QTabBar::tabLayoutChange()
This virtual handler is called whenever the tab layout changes.
See also tabRect().
Upstream PySide2 reference signatures (binding differences may apply):
tabLayoutChange(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#tabLayoutChange