Skip to content

PythonQt.QtGui.QTabBar · declarations 003

Back to PythonQt.QtGui.QTabBar

tabMoved

tabMoved(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QTabBar.tabMoved; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QTabBar::tabMoved(int from, int to)

This signal is emitted when the tab has moved the tab at index position from to index position to.

note: QTabWidget will automatically move the page when this signal is emitted from its tab bar.

This function was introduced in Qt 4.5.

See also moveTab().

Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#tabMoved

tabRect

tabRect(index: int) -> Any

X.tabRect(index) -> PythonQt.QtCore.QRect

Supplemental documentation: Qt 5 reference:

QRect QTabBar::tabRect(int index) const

Returns the visual rectangle of the tab at position index, or a null rectangle if index is hidden, or out of range.

Upstream PySide2 reference signatures (binding differences may apply):

tabRect(self, index: int) -> PySide2.QtCore.QRect

Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#tabRect

tabRemoved

tabRemoved(index: int) -> None

X.tabRemoved(index)

Supplemental documentation: Qt 5 reference:

[virtual protected] void QTabBar::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/qtabbar.html#tabRemoved

tabSizeHint

tabSizeHint(index: int) -> Any

X.tabSizeHint(index) -> PythonQt.QtCore.QSize

Supplemental documentation: Qt 5 reference:

[virtual protected] QSize QTabBar::tabSizeHint(int index) const

Returns the size hint for the tab at position index.

Upstream PySide2 reference signatures (binding differences may apply):

tabSizeHint(self, index: int) -> PySide2.QtCore.QSize

Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#tabSizeHint

tabText

tabText(index: int) -> str

X.tabText(index) -> str

Supplemental documentation: Qt 5 reference:

QString QTabBar::tabText(int index) const

Returns the text of the tab at position index, or an empty string if index is out of range.

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/qtabbar.html#tabText

tabTextColor

tabTextColor(index: int) -> Any

X.tabTextColor(index) -> PythonQt.QtGui.QColor

Supplemental documentation: Qt 5 reference:

QColor QTabBar::tabTextColor(int index) const

Returns the text color of the tab with the given index, or a invalid color if index is out of range.

See also setTabTextColor().

Upstream PySide2 reference signatures (binding differences may apply):

tabTextColor(self, index: int) -> PySide2.QtGui.QColor

Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#tabTextColor

tabToolTip

tabToolTip(index: int) -> str

X.tabToolTip(index) -> str

Supplemental documentation: Qt 5 reference:

QString QTabBar::tabToolTip(int index) const

Returns the tool tip of the tab at position index, or an empty string if index is out of range.

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/qtabbar.html#tabToolTip

tabWhatsThis

tabWhatsThis(index: int) -> str

X.tabWhatsThis(index) -> str

Supplemental documentation: Qt 5 reference:

QString QTabBar::tabWhatsThis(int index) const

Returns the What's This help text of the tab at position index, or an empty string if index is out of range.

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/qtabbar.html#tabWhatsThis

tabsClosable instance-attribute

tabsClosable: bool

Qt 5 reference:

tabsClosable : bool

This property holds whether or not a tab bar should place close buttons on each tab

When tabsClosable is set to true a close button will appear on the tab on either the left or right hand side depending upon the style. When the button is clicked the tab the signal tabCloseRequested will be emitted.

By default the value is false.

This property was introduced in Qt 4.5.

Access functions:

bool tabsClosable() const
void setTabsClosable(bool closable)

See also setTabButton() and tabRemoved().

Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#tabsClosable

timerEvent

timerEvent(event: Any) -> None

X.timerEvent(event)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QTabBar::timerEvent(QTimerEvent *event)

Reimplements: QObject::timerEvent(QTimerEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

timerEvent(self, event: PySide2.QtCore.QTimerEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#timerEvent

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, QTabWidget::usesScrollButtons, and QStyle::SH_TabBar_PreferNoArrows.

Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#usesScrollButtons

wheelEvent

wheelEvent(event: Any) -> None

X.wheelEvent(event)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QTabBar::wheelEvent(QWheelEvent *event)

Reimplements: QWidget::wheelEvent(QWheelEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

wheelEvent(self, event: PySide2.QtGui.QWheelEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtabbar.html#wheelEvent

windowIconChanged

windowIconChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QTabBar.windowIconChanged; argument details are not documented.

windowIconTextChanged

windowIconTextChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QTabBar.windowIconTextChanged; argument details are not documented.

windowTitleChanged

windowTitleChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QTabBar.windowTitleChanged; argument details are not documented.