Skip to content

PythonQt.QtGui.QStackedLayout · declarations 001

Back to PythonQt.QtGui.QStackedLayout

StackAll instance-attribute

StackAll: Any

StackOne instance-attribute

StackOne: Any

StackingMode instance-attribute

StackingMode: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

addItem

addItem(item: Any) -> None

X.addItem(item)

Supplemental documentation: Qt 5 reference:

[override virtual] void QStackedLayout::addItem(QLayoutItem *item)

Reimplements: QLayout::addItem(QLayoutItem *item).

Upstream PySide2 reference signatures (binding differences may apply):

addItem(self, item: PySide2.QtWidgets.QLayoutItem) -> None

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

addWidget

addWidget(w: Any) -> int

X.addWidget(w) -> int

Supplemental documentation: Qt 5 reference:

int QStackedLayout::addWidget(QWidget *widget)

Adds the given widget to the end of this layout and returns the index position of the widget.

If the QStackedLayout is empty before this function is called, the given 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/qstackedlayout.html#addWidget

count

count() -> int

X.count() -> int

Supplemental documentation: Qt 5 reference:

count : const int

This property holds the number of widgets contained in the layout

Access functions:

virtual int count() const override

See also currentIndex() and widget().

Upstream PySide2 reference signatures (binding differences may apply):

count(self) -> int

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

currentChanged

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

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

Supplemental documentation: Qt 5 reference:

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

This signal is emitted whenever the current widget in the layout changes. The index specifies 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 QStackedLayout)

Note: Notifier signal for property currentIndex.

See also currentWidget() and setCurrentWidget().

Source: https://doc.qt.io/archives/qt-5.15/qstackedlayout.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.

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/qstackedlayout.html#currentIndex

currentWidget

currentWidget() -> Any

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

Supplemental documentation: Qt 5 reference:

QWidget *QStackedLayout::currentWidget() const

Returns the current widget, or nullptr if there are no widgets in this layout.

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

destroyed

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

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

hasHeightForWidth

hasHeightForWidth() -> bool

X.hasHeightForWidth() -> bool

Supplemental documentation: Qt 5 reference:

[override virtual] bool QStackedLayout::hasHeightForWidth() const

Reimplements: QLayoutItem::hasHeightForWidth() const.

Upstream PySide2 reference signatures (binding differences may apply):

hasHeightForWidth(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qstackedlayout.html#hasHeightForWidth

heightForWidth

heightForWidth(width: int) -> int

X.heightForWidth(width) -> int

Supplemental documentation: Qt 5 reference:

[override virtual] int QStackedLayout::heightForWidth(int width) const

Reimplements: QLayoutItem::heightForWidth(int ) const.

Upstream PySide2 reference signatures (binding differences may apply):

heightForWidth(self, width: int) -> int

Source: https://doc.qt.io/archives/qt-5.15/qstackedlayout.html#heightForWidth

insertWidget

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

X.insertWidget(index, w) -> int

Supplemental documentation: Qt 5 reference:

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

Inserts the given widget at the given index in this QStackedLayout. 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 QStackedLayout is 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/qstackedlayout.html#insertWidget

itemAt

itemAt(arg__1: int) -> Any

X.itemAt(arg__1) -> PythonQt.QtGui.QLayoutItem

Supplemental documentation: Qt 5 reference:

[override virtual] QLayoutItem *QStackedLayout::itemAt(int index) const

Reimplements: QLayout::itemAt(int index) const.

Upstream PySide2 reference signatures (binding differences may apply):

itemAt(self, arg__1: int) -> PySide2.QtWidgets.QLayoutItem

Source: https://doc.qt.io/archives/qt-5.15/qstackedlayout.html#itemAt

minimumSize

minimumSize() -> Any

X.minimumSize() -> PythonQt.QtCore.QSize

Supplemental documentation: Qt 5 reference:

[override virtual] QSize QStackedLayout::minimumSize() const

Reimplements: QLayout::minimumSize() const.

Upstream PySide2 reference signatures (binding differences may apply):

minimumSize(self) -> PySide2.QtCore.QSize

Source: https://doc.qt.io/archives/qt-5.15/qstackedlayout.html#minimumSize

objectNameChanged

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

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

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

setCurrentWidget

setCurrentWidget(w: Any) -> None

X.setCurrentWidget(w)

Supplemental documentation: Qt 5 reference:

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

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

See also setCurrentIndex() and currentWidget().

Upstream PySide2 reference signatures (binding differences may apply):

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

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

setGeometry

setGeometry(rect: Any) -> None

X.setGeometry(rect)

Supplemental documentation: Qt 5 reference:

[override virtual] void QStackedLayout::setGeometry(const QRect \&rect)

Reimplements: QLayout::setGeometry(const QRect \&r).

Upstream PySide2 reference signatures (binding differences may apply):

setGeometry(self, rect: PySide2.QtCore.QRect) -> None

Source: https://doc.qt.io/archives/qt-5.15/qstackedlayout.html#setGeometry

setSpacing

setSpacing(arg__1: Any) -> Any

X.setSpacing(arg__1)

setStackingMode

setStackingMode(stackingMode: Any) -> None

X.setStackingMode(stackingMode)

Upstream PySide2 reference signatures (binding differences may apply):

setStackingMode(self, stackingMode: PySide2.QtWidgets.QStackedLayout.StackingMode) -> None

Source: https://doc.qt.io/archives/qt-5.15/qstackedlayout.html#setStackingMode

sizeHint

sizeHint() -> Any

X.sizeHint() -> PythonQt.QtCore.QSize

Supplemental documentation: Qt 5 reference:

[override virtual] QSize QStackedLayout::sizeHint() const

Reimplements: QLayoutItem::sizeHint() const.

Upstream PySide2 reference signatures (binding differences may apply):

sizeHint(self) -> PySide2.QtCore.QSize

Source: https://doc.qt.io/archives/qt-5.15/qstackedlayout.html#sizeHint

stackingMode instance-attribute

stackingMode: Any

Qt 5 reference:

stackingMode : StackingMode

determines the way visibility of child widgets are handled.

The default value is StackOne. Setting the property to StackAll allows you to make use of the layout for overlay widgets that do additional drawing on top of other widgets, for example, graphical editors.

This property was introduced in Qt 4.4.

Access functions:

QStackedLayout::StackingMode stackingMode() const
void setStackingMode(QStackedLayout::StackingMode stackingMode)

Source: https://doc.qt.io/archives/qt-5.15/qstackedlayout.html#stackingMode

takeAt

takeAt(arg__1: int) -> Any

X.takeAt(arg__1) -> PythonQt.QtGui.QLayoutItem

Supplemental documentation: Qt 5 reference:

[override virtual] QLayoutItem *QStackedLayout::takeAt(int index)

Reimplements: QLayout::takeAt(int index).

Upstream PySide2 reference signatures (binding differences may apply):

takeAt(self, arg__1: int) -> PySide2.QtWidgets.QLayoutItem

Source: https://doc.qt.io/archives/qt-5.15/qstackedlayout.html#takeAt

widget

widget() -> Any

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

Supplemental documentation: Qt 5 reference:

QWidget *QStackedLayout::widget(int index) const

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

See also currentWidget() and indexOf().

Upstream PySide2 reference signatures (binding differences may apply):

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

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

widgetRemoved

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

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

Supplemental documentation: Qt 5 reference:

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

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

See also removeWidget().

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