PythonQt.QtGui.QTabWidget · declarations 002
Back to PythonQt.QtGui.QTabWidget
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/qtabwidget.html#setMovable
setTabBar
setTabBar(arg__1: Any) -> None
X.setTabBar(arg__1)
Supplemental documentation: Qt 5 reference:
[protected] void QTabWidget::setTabBar(QTabBar *tb)
Replaces the dialog's QTabBar heading with the tab bar tb. Note that this must be called before any tabs have been added, or the behavior is undefined.
See also tabBar().
Upstream PySide2 reference signatures (binding differences may apply):
setTabBar(self, arg__1: PySide2.QtWidgets.QTabBar) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabwidget.html#setTabBar
setTabBarAutoHide
setTabBarAutoHide(enabled: bool) -> None
X.setTabBarAutoHide(enabled)
Upstream PySide2 reference signatures (binding differences may apply):
setTabBarAutoHide(self, enabled: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabwidget.html#setTabBarAutoHide
setTabEnabled
setTabEnabled(index: int, arg__2: Any) -> None
X.setTabEnabled(index, arg__2)
Supplemental documentation: Qt 5 reference:
void QTabWidget::setTabEnabled(int index, bool enable)
If enable is true, the page at position index is enabled; otherwise the page at position index is disabled. The page's tab is redrawn appropriately.
QTabWidget uses QWidget::setEnabled() internally, rather than keeping a separate flag.
Note that even a disabled tab/page may be visible. If the page is visible already, QTabWidget will not hide it; if all the pages are disabled, QTabWidget will show one of them.
See also isTabEnabled() and QWidget::setEnabled().
Upstream PySide2 reference signatures (binding differences may apply):
setTabEnabled(self, index: int, enabled: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabwidget.html#setTabEnabled
setTabIcon
setTabIcon(index: int, icon: Any) -> None
X.setTabIcon(index, icon)
Supplemental documentation: Qt 5 reference:
void QTabWidget::setTabIcon(int index, const QIcon \&icon)
Sets the icon for the tab at position index.
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/qtabwidget.html#setTabIcon
setTabPosition
setTabPosition(arg__1: Any) -> None
X.setTabPosition(arg__1)
Upstream PySide2 reference signatures (binding differences may apply):
setTabPosition(self, position: PySide2.QtWidgets.QTabWidget.TabPosition) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabwidget.html#setTabPosition
setTabShape
setTabShape(s: Any) -> None
X.setTabShape(s)
Upstream PySide2 reference signatures (binding differences may apply):
setTabShape(self, s: PySide2.QtWidgets.QTabWidget.TabShape) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabwidget.html#setTabShape
setTabText
setTabText(index: int, arg__2: Any) -> None
X.setTabText(index, arg__2)
Supplemental documentation: Qt 5 reference:
void QTabWidget::setTabText(int index, const QString \&label)
Defines a new label for the page at position index's tab.
If the provided text contains an ampersand character ('\&'), a shortcut is automatically created for it. The character that follows the '\&' will be used as the shortcut key. Any previous shortcut will be overwritten, or cleared if no shortcut is defined by the text. See the QShortcut documentation for details (to display an actual ampersand, use '\&\&').
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/qtabwidget.html#setTabText
setTabToolTip
setTabToolTip(index: int, tip: str) -> None
X.setTabToolTip(index, tip)
Supplemental documentation: Qt 5 reference:
void QTabWidget::setTabToolTip(int index, const QString \&tip)
Sets the tab tool tip for the page 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/qtabwidget.html#setTabToolTip
setTabWhatsThis
setTabWhatsThis(index: int, text: str) -> None
X.setTabWhatsThis(index, text)
Supplemental documentation: Qt 5 reference:
void QTabWidget::setTabWhatsThis(int index, const QString \&text)
Sets the What's This help text for the page 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/qtabwidget.html#setTabWhatsThis
setTabsClosable
setTabsClosable(closeable: bool) -> None
X.setTabsClosable(closeable)
Upstream PySide2 reference signatures (binding differences may apply):
setTabsClosable(self, closeable: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabwidget.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/qtabwidget.html#setUsesScrollButtons
showEvent
showEvent(arg__1: Any) -> None
X.showEvent(arg__1)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QTabWidget::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/qtabwidget.html#showEvent
sizeHint
instance-attribute
sizeHint: QSize
Qt 5 reference:
[override virtual] QSize QTabWidget::sizeHint() const
Reimplements an access function for property: QWidget::sizeHint.
Source: https://doc.qt.io/archives/qt-5.15/qtabwidget.html#sizeHint
tabBar
tabBar() -> Any
X.tabBar() -> PythonQt.QtGui.QTabBar
Supplemental documentation: Qt 5 reference:
QTabBar *QTabWidget::tabBar() const
Returns the current QTabBar.
See also setTabBar().
Upstream PySide2 reference signatures (binding differences may apply):
tabBar(self) -> PySide2.QtWidgets.QTabBar
Source: https://doc.qt.io/archives/qt-5.15/qtabwidget.html#tabBar
tabBarAutoHide
instance-attribute
tabBarAutoHide: bool
Qt 5 reference:
tabBarAutoHide : bool
If true, the tab bar is automatically hidden when it contains less than 2 tabs.
By default, this property is false.
This property was introduced in Qt 5.4.
Access functions:
| bool | tabBarAutoHide() const |
|---|---|
| void | setTabBarAutoHide(bool enabled) |
See also QWidget::visible.
Source: https://doc.qt.io/archives/qt-5.15/qtabwidget.html#tabBarAutoHide
tabBarClicked
tabBarClicked(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTabWidget.tabBarClicked; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QTabWidget::tabBarClicked(int index)
This signal is emitted when user clicks on a tab at an 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/qtabwidget.html#tabBarClicked
tabBarDoubleClicked
tabBarDoubleClicked(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTabWidget.tabBarDoubleClicked; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QTabWidget::tabBarDoubleClicked(int index)
This signal is emitted when the user double 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/qtabwidget.html#tabBarDoubleClicked
tabCloseRequested
tabCloseRequested(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTabWidget.tabCloseRequested; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QTabWidget::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/qtabwidget.html#tabCloseRequested
tabIcon
tabIcon(index: int) -> Any
X.tabIcon(index) -> PythonQt.QtGui.QIcon
Supplemental documentation: Qt 5 reference:
QIcon QTabWidget::tabIcon(int index) const
Returns the icon for the tab on the page at position index.
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/qtabwidget.html#tabIcon
tabInserted
tabInserted(index: int) -> None
X.tabInserted(index)
Supplemental documentation: Qt 5 reference:
[virtual protected] void QTabWidget::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/qtabwidget.html#tabInserted
tabPosition
instance-attribute
tabPosition: Any
Qt 5 reference:
tabPosition : TabPosition
This property holds the position of the tabs in this tab widget
Possible values for this property are described by the TabPosition enum.
By default, this property is set to North.
Access functions:
| QTabWidget::TabPosition | tabPosition() const |
|---|---|
| void | setTabPosition(QTabWidget::TabPosition position) |
See also TabPosition.
Source: https://doc.qt.io/archives/qt-5.15/qtabwidget.html#tabPosition
tabRemoved
tabRemoved(index: int) -> None
X.tabRemoved(index)
Supplemental documentation: Qt 5 reference:
[virtual protected] void QTabWidget::tabRemoved(int index)
This virtual handler is called after a tab was removed from position index.
See also tabInserted().
Upstream PySide2 reference signatures (binding differences may apply):
tabRemoved(self, index: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtabwidget.html#tabRemoved
tabShape
instance-attribute
tabShape: Any
Qt 5 reference:
tabShape : TabShape
This property holds the shape of the tabs in this tab widget
Possible values for this property are QTabWidget::Rounded (default) or QTabWidget::Triangular.
Access functions:
| QTabWidget::TabShape | tabShape() const |
|---|---|
| void | setTabShape(QTabWidget::TabShape s) |
See also TabShape.
Source: https://doc.qt.io/archives/qt-5.15/qtabwidget.html#tabShape
tabText
tabText(index: int) -> str
X.tabText(index) -> str
Supplemental documentation: Qt 5 reference:
QString QTabWidget::tabText(int index) const
Returns the label text for the tab on the page at position index.
See also setTabText().
Upstream PySide2 reference signatures (binding differences may apply):
tabText(self, index: int) -> str
Source: https://doc.qt.io/archives/qt-5.15/qtabwidget.html#tabText
tabToolTip
tabToolTip(index: int) -> str
X.tabToolTip(index) -> str
Supplemental documentation: Qt 5 reference:
QString QTabWidget::tabToolTip(int index) const
Returns the tab tool tip for the page at position index or an empty string if no tool tip has been set.
See also setTabToolTip().
Upstream PySide2 reference signatures (binding differences may apply):
tabToolTip(self, index: int) -> str
Source: https://doc.qt.io/archives/qt-5.15/qtabwidget.html#tabToolTip
tabWhatsThis
tabWhatsThis(index: int) -> str
X.tabWhatsThis(index) -> str
Supplemental documentation: Qt 5 reference:
QString QTabWidget::tabWhatsThis(int index) const
Returns the What's This help text for the page at position index, or an empty string if no help text has been set.
This function was introduced in Qt 4.1.
See also setTabWhatsThis().
Upstream PySide2 reference signatures (binding differences may apply):
tabWhatsThis(self, index: int) -> str
Source: https://doc.qt.io/archives/qt-5.15/qtabwidget.html#tabWhatsThis
tabsClosable
instance-attribute
tabsClosable: bool
Qt 5 reference:
tabsClosable : bool
This property holds whether close buttons are automatically added to each tab.
This property was introduced in Qt 4.5.
Access functions:
| bool | tabsClosable() const |
|---|---|
| void | setTabsClosable(bool closeable) |
See also QTabBar::tabsClosable().
Source: https://doc.qt.io/archives/qt-5.15/qtabwidget.html#tabsClosable
usesScrollButtons
instance-attribute
usesScrollButtons: bool
Qt 5 reference:
usesScrollButtons : bool
This property holds whether or not a tab bar should use buttons to scroll tabs when it has many tabs.
When there are too many tabs in a tab bar for its size, the tab bar can either choose to expand its size or to add buttons that allow you to scroll through the tabs.
By default the value is style dependent.
This property was introduced in Qt 4.2.
Access functions:
| bool | usesScrollButtons() const |
|---|---|
| void | setUsesScrollButtons(bool useButtons) |
See also elideMode, QTabBar::usesScrollButtons, and QStyle::SH_TabBar_PreferNoArrows.
Source: https://doc.qt.io/archives/qt-5.15/qtabwidget.html#usesScrollButtons
widget
widget(index: int) -> Any
X.widget(index) -> PythonQt.QtGui.QWidget
Supplemental documentation: Qt 5 reference:
QWidget *QTabWidget::widget(int index) const
Returns the tab page at index position index or nullptr if the index is out of
range.
Upstream PySide2 reference signatures (binding differences may apply):
widget(self, index: int) -> PySide2.QtWidgets.QWidget
Source: https://doc.qt.io/archives/qt-5.15/qtabwidget.html#widget
windowIconChanged
windowIconChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTabWidget.windowIconChanged; argument details are not documented.
windowIconTextChanged
windowIconTextChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTabWidget.windowIconTextChanged; argument details are not documented.
windowTitleChanged
windowTitleChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTabWidget.windowTitleChanged; argument details are not documented.