Skip to content

PythonQt.QtGui.QToolBox · declarations 001

Back to PythonQt.QtGui.QToolBox

addItem

addItem(widget: Any, icon: Any, text: str) -> int

X.addItem(widget, icon, text) -> int

Supplemental documentation: Qt 5 reference:

int QToolBox::addItem(QWidget *widget, const QIcon \&iconSet, const QString \&text)

Adds the widget in a new tab at bottom of the toolbox. The new tab's text is set to text, and the iconSet is displayed to the left of the text. Returns the new tab's index.

int QToolBox::addItem(QWidget *w, const QString \&text)

This is an overloaded function.

Adds the widget w in a new tab at bottom of the toolbox. The new tab's text is set to text. Returns the new tab's index.

Upstream PySide2 reference signatures (binding differences may apply):

addItem(self, widget: PySide2.QtWidgets.QWidget, icon: PySide2.QtGui.QIcon, text: str) -> int
addItem(self, widget: PySide2.QtWidgets.QWidget, text: str) -> int

Source: https://doc.qt.io/archives/qt-5.15/qtoolbox.html#addItem

changeEvent

changeEvent(arg__1: Any) -> None

X.changeEvent(arg__1)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QToolBox::changeEvent(QEvent *ev)

Reimplements: QFrame::changeEvent(QEvent *ev).

Upstream PySide2 reference signatures (binding differences may apply):

changeEvent(self, arg__1: PySide2.QtCore.QEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtoolbox.html#changeEvent

count instance-attribute

count: int

Qt 5 reference:

count : const int

This property holds the number of items contained in the toolbox.

By default, this property has a value of 0.

Access functions:

int count() const

Source: https://doc.qt.io/archives/qt-5.15/qtoolbox.html#count

currentChanged

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

Native PythonQt.QtGui.QToolBox.currentChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QToolBox::currentChanged(int index)

This signal is emitted when the current item is changed. The new current item's index is passed in index, or -1 if there is no current item.

Note: Notifier signal for property currentIndex.

Source: https://doc.qt.io/archives/qt-5.15/qtoolbox.html#currentChanged

currentIndex instance-attribute

currentIndex: int

Qt 5 reference:

currentIndex : int

This property holds the index of the current item

By default, for an empty toolbox, this property has a value of -1.

Access functions:

int currentIndex() const
void setCurrentIndex(int index)

Notifier signal:

void currentChanged(int index)

See also indexOf() and widget().

Source: https://doc.qt.io/archives/qt-5.15/qtoolbox.html#currentIndex

currentWidget

currentWidget() -> Any

X.currentWidget() -> PythonQt.QtGui.QWidget

Supplemental documentation: Qt 5 reference:

QWidget *QToolBox::currentWidget() const

Returns a pointer to the current widget, or nullptr if there is no such item.

See also currentIndex() and setCurrentWidget().

Upstream PySide2 reference signatures (binding differences may apply):

currentWidget(self) -> PySide2.QtWidgets.QWidget

Source: https://doc.qt.io/archives/qt-5.15/qtoolbox.html#currentWidget

customContextMenuRequested

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

Native PythonQt.QtGui.QToolBox.customContextMenuRequested; argument details are not documented.

destroyed

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

Native PythonQt.QtGui.QToolBox.destroyed; argument details are not documented.

event

event(e: Any) -> bool

X.event(e) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual protected] bool QToolBox::event(QEvent *e)

Reimplements: QFrame::event(QEvent *e).

Upstream PySide2 reference signatures (binding differences may apply):

event(self, e: PySide2.QtCore.QEvent) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qtoolbox.html#event

indexOf

indexOf(widget: Any) -> int

X.indexOf(widget) -> int

Supplemental documentation: Qt 5 reference:

int QToolBox::indexOf(QWidget *widget) const

Returns the index of widget, or -1 if the item does not exist.

Upstream PySide2 reference signatures (binding differences may apply):

indexOf(self, widget: PySide2.QtWidgets.QWidget) -> int

Source: https://doc.qt.io/archives/qt-5.15/qtoolbox.html#indexOf

insertItem

insertItem(index: int, widget: Any, icon: Any, text: str) -> int

X.insertItem(index, widget, icon, text) -> int

Supplemental documentation: Qt 5 reference:

int QToolBox::insertItem(int index, QWidget *widget, const QIcon \&icon, const QString \&text)

Inserts the widget at position index, or at the bottom of the toolbox if index is out of range. The new item's text is set to text, and the icon is displayed to the left of the text. Returns the new item's index.

int QToolBox::insertItem(int index, QWidget *widget, const QString \&text)

This is an overloaded function.

Inserts the widget at position index, or at the bottom of the toolbox if index is out of range. The new item's text is set to text. Returns the new item's index.

Upstream PySide2 reference signatures (binding differences may apply):

insertItem(self, index: int, widget: PySide2.QtWidgets.QWidget, icon: PySide2.QtGui.QIcon, text: str) -> int
insertItem(self, index: int, widget: PySide2.QtWidgets.QWidget, text: str) -> int

Source: https://doc.qt.io/archives/qt-5.15/qtoolbox.html#insertItem

isItemEnabled

isItemEnabled(index: int) -> bool

X.isItemEnabled(index) -> bool

Supplemental documentation: Qt 5 reference:

bool QToolBox::isItemEnabled(int index) const

Returns true if the item at position index is enabled; otherwise returns false.

Upstream PySide2 reference signatures (binding differences may apply):

isItemEnabled(self, index: int) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qtoolbox.html#isItemEnabled

itemIcon

itemIcon(index: int) -> Any

X.itemIcon(index) -> PythonQt.QtGui.QIcon

Supplemental documentation: Qt 5 reference:

QIcon QToolBox::itemIcon(int index) const

Returns the icon of the item at position index, or a null icon if index is out of range.

See also setItemIcon().

Upstream PySide2 reference signatures (binding differences may apply):

itemIcon(self, index: int) -> PySide2.QtGui.QIcon

Source: https://doc.qt.io/archives/qt-5.15/qtoolbox.html#itemIcon

itemInserted

itemInserted(index: int) -> None

X.itemInserted(index)

Supplemental documentation: Qt 5 reference:

[virtual protected] void QToolBox::itemInserted(int index)

This virtual handler is called after a new item was added or inserted at position index.

See also itemRemoved().

Upstream PySide2 reference signatures (binding differences may apply):

itemInserted(self, index: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtoolbox.html#itemInserted

itemRemoved

itemRemoved(index: int) -> None

X.itemRemoved(index)

Supplemental documentation: Qt 5 reference:

[virtual protected] void QToolBox::itemRemoved(int index)

This virtual handler is called after an item was removed from position index.

See also itemInserted().

Upstream PySide2 reference signatures (binding differences may apply):

itemRemoved(self, index: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtoolbox.html#itemRemoved

itemText

itemText(index: int) -> str

X.itemText(index) -> str

Supplemental documentation: Qt 5 reference:

QString QToolBox::itemText(int index) const

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

See also setItemText().

Upstream PySide2 reference signatures (binding differences may apply):

itemText(self, index: int) -> str

Source: https://doc.qt.io/archives/qt-5.15/qtoolbox.html#itemText

itemToolTip

itemToolTip(index: int) -> str

X.itemToolTip(index) -> str

Supplemental documentation: Qt 5 reference:

QString QToolBox::itemToolTip(int index) const

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

See also setItemToolTip().

Upstream PySide2 reference signatures (binding differences may apply):

itemToolTip(self, index: int) -> str

Source: https://doc.qt.io/archives/qt-5.15/qtoolbox.html#itemToolTip

objectNameChanged

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

Native PythonQt.QtGui.QToolBox.objectNameChanged; argument details are not documented.

removeItem

removeItem(index: int) -> None

X.removeItem(index)

Supplemental documentation: Qt 5 reference:

void QToolBox::removeItem(int index)

Removes the item at position index from the toolbox. Note that the widget is not deleted.

Upstream PySide2 reference signatures (binding differences may apply):

removeItem(self, index: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtoolbox.html#removeItem

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/qtoolbox.html#setCurrentIndex

setCurrentWidget

setCurrentWidget(widget: Any) -> None

X.setCurrentWidget(widget)

Supplemental documentation: Qt 5 reference:

[slot] void QToolBox::setCurrentWidget(QWidget *widget)

Makeswidget the current widget. The widget must be an item in this tool box.

See also addItem(), setCurrentIndex(), and currentWidget().

Upstream PySide2 reference signatures (binding differences may apply):

setCurrentWidget(self, widget: PySide2.QtWidgets.QWidget) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtoolbox.html#setCurrentWidget

setItemEnabled

setItemEnabled(index: int, enabled: bool) -> None

X.setItemEnabled(index, enabled)

Supplemental documentation: Qt 5 reference:

void QToolBox::setItemEnabled(int index, bool enabled)

If enabled is true then the item at position index is enabled; otherwise the item at position index is disabled.

See also isItemEnabled().

Upstream PySide2 reference signatures (binding differences may apply):

setItemEnabled(self, index: int, enabled: bool) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtoolbox.html#setItemEnabled

setItemIcon

setItemIcon(index: int, icon: Any) -> None

X.setItemIcon(index, icon)

Supplemental documentation: Qt 5 reference:

void QToolBox::setItemIcon(int index, const QIcon \&icon)

Sets the icon of the item at position index to icon.

See also itemIcon().

Upstream PySide2 reference signatures (binding differences may apply):

setItemIcon(self, index: int, icon: PySide2.QtGui.QIcon) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtoolbox.html#setItemIcon

setItemText

setItemText(index: int, text: str) -> None

X.setItemText(index, text)

Supplemental documentation: Qt 5 reference:

void QToolBox::setItemText(int index, const QString \&text)

Sets the text of the item at position index to text.

If the provided text contains an ampersand character ('\&'), a mnemonic is automatically created for it. The character that follows the '\&' will be used as the shortcut key. Any previous mnemonic will be overwritten, or cleared if no mnemonic is defined by the text. See the QShortcut documentation for details (to display an actual ampersand, use '\&\&').

See also itemText().

Upstream PySide2 reference signatures (binding differences may apply):

setItemText(self, index: int, text: str) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtoolbox.html#setItemText

setItemToolTip

setItemToolTip(index: int, toolTip: str) -> None

X.setItemToolTip(index, toolTip)

Supplemental documentation: Qt 5 reference:

void QToolBox::setItemToolTip(int index, const QString \&toolTip)

Sets the tooltip of the item at position index to toolTip.

See also itemToolTip().

Upstream PySide2 reference signatures (binding differences may apply):

setItemToolTip(self, index: int, toolTip: str) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtoolbox.html#setItemToolTip

showEvent

showEvent(e: Any) -> None

X.showEvent(e)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QToolBox::showEvent(QShowEvent *e)

Reimplements: QWidget::showEvent(QShowEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

showEvent(self, e: PySide2.QtGui.QShowEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtoolbox.html#showEvent

widget

widget(index: int) -> Any

X.widget(index) -> PythonQt.QtGui.QWidget

Supplemental documentation: Qt 5 reference:

QWidget *QToolBox::widget(int index) const

Returns the widget at position index, or nullptr if there is no such item.

Upstream PySide2 reference signatures (binding differences may apply):

widget(self, index: int) -> PySide2.QtWidgets.QWidget

Source: https://doc.qt.io/archives/qt-5.15/qtoolbox.html#widget

windowIconChanged

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

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

windowIconTextChanged

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

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

windowTitleChanged

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

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