Skip to content

PythonQt.QtGui.QStackedWidget · declarations 001

Back to PythonQt.QtGui.QStackedWidget

addWidget

addWidget(w: Any) -> int

X.addWidget(w) -> int

Supplemental documentation: Qt 5 reference:

int QStackedWidget::addWidget(QWidget *widget)

Appends the given widget to the QStackedWidget and returns the index position. Ownership of widget is passed on to the QStackedWidget.

If the QStackedWidget is empty before this function is called, widget becomes the current widget.

See also insertWidget(), removeWidget(), and setCurrentWidget().

Upstream PySide2 reference signatures (binding differences may apply):

addWidget(self, w: PySide2.QtWidgets.QWidget) -> int

Source: https://doc.qt.io/archives/qt-5.15/qstackedwidget.html#addWidget

count instance-attribute

count: int

Qt 5 reference:

count : const int

This property holds the number of widgets contained by this stacked widget

By default, this property contains a value of 0.

Access functions:

int count() const

See also currentIndex() and widget().

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

currentChanged

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

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

Supplemental documentation: Qt 5 reference:

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

This signal is emitted whenever the current widget changes.

The parameter holds the index of the new current widget, or -1 if there isn't a new one (for example, if there are no widgets in the QStackedWidget).

Note: Notifier signal for property currentIndex.

See also currentWidget() and setCurrentWidget().

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

currentIndex instance-attribute

currentIndex: int

Qt 5 reference:

currentIndex : int

This property holds the index position of the widget that is visible

The current index is -1 if there is no current widget.

By default, this property contains a value of -1 because the stack is initially empty.

Access functions:

int currentIndex() const
void setCurrentIndex(int index)

Notifier signal:

void currentChanged(int index)

See also currentWidget() and indexOf().

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

currentWidget

currentWidget() -> Any

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

Supplemental documentation: Qt 5 reference:

QWidget *QStackedWidget::currentWidget() const

Returns the current widget, or nullptr if there are no child widgets.

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/qstackedwidget.html#currentWidget

customContextMenuRequested

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

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

destroyed

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

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

event

event(e: Any) -> bool

X.event(e) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual protected] bool QStackedWidget::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/qstackedwidget.html#event

indexOf

indexOf(arg__1: Any) -> int

X.indexOf(arg__1) -> int

Supplemental documentation: Qt 5 reference:

int QStackedWidget::indexOf(QWidget *widget) const

Returns the index of the given widget, or -1 if the given widget is not a child of the QStackedWidget.

See also currentIndex() and widget().

Upstream PySide2 reference signatures (binding differences may apply):

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

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

insertWidget

insertWidget(index: int, w: Any) -> int

X.insertWidget(index, w) -> int

Supplemental documentation: Qt 5 reference:

int QStackedWidget::insertWidget(int index, QWidget *widget)

Inserts the given widget at the given index in the QStackedWidget. Ownership of widget is passed on to the QStackedWidget. If index is out of range, the widget is appended (in which case it is the actual index of the widget that is returned).

If the QStackedWidget was empty before this function is called, the given widget becomes the current widget.

Inserting a new widget at an index less than or equal to the current index will increment the current index, but keep the current widget.

See also addWidget(), removeWidget(), and setCurrentWidget().

Upstream PySide2 reference signatures (binding differences may apply):

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

Source: https://doc.qt.io/archives/qt-5.15/qstackedwidget.html#insertWidget

objectNameChanged

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

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

removeWidget

removeWidget(w: Any) -> None

X.removeWidget(w)

Supplemental documentation: Qt 5 reference:

void QStackedWidget::removeWidget(QWidget *widget)

Removes widget from the QStackedWidget. i.e., widget is not deleted but simply removed from the stacked layout, causing it to be hidden.

Note: Parent object and parent widget of widget will remain the QStackedWidget. If the application wants to reuse the removed widget, then it is recommended to re-parent it.

See also addWidget(), insertWidget(), and currentWidget().

Upstream PySide2 reference signatures (binding differences may apply):

removeWidget(self, w: PySide2.QtWidgets.QWidget) -> None

Source: https://doc.qt.io/archives/qt-5.15/qstackedwidget.html#removeWidget

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

setCurrentWidget

setCurrentWidget(w: Any) -> None

X.setCurrentWidget(w)

Supplemental documentation: Qt 5 reference:

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

Sets the current widget to be the specified widget. The new current widget must already be contained in this stacked widget.

See also currentWidget() and setCurrentIndex().

Upstream PySide2 reference signatures (binding differences may apply):

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

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

widget

widget(arg__1: int) -> Any

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

Supplemental documentation: Qt 5 reference:

QWidget *QStackedWidget::widget(int index) const

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

See also currentWidget() and indexOf().

Upstream PySide2 reference signatures (binding differences may apply):

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

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

widgetRemoved

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

Native PythonQt.QtGui.QStackedWidget.widgetRemoved; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QStackedWidget::widgetRemoved(int index)

This signal is emitted whenever a widget is removed. The widget's index is passed as parameter.

See also removeWidget().

Source: https://doc.qt.io/archives/qt-5.15/qstackedwidget.html#widgetRemoved

windowIconChanged

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

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

windowIconTextChanged

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

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

windowTitleChanged

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

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