Skip to content

PythonQt.QtGui.QBoxLayout · declarations 001

Back to PythonQt.QtGui.QBoxLayout

BottomToTop instance-attribute

BottomToTop: Any

Down instance-attribute

Down: Any

SetDefaultConstraint instance-attribute

SetDefaultConstraint: Any

SetFixedSize instance-attribute

SetFixedSize: Any

SetMaximumSize instance-attribute

SetMaximumSize: Any

SetMinAndMaxSize instance-attribute

SetMinAndMaxSize: Any

SetMinimumSize instance-attribute

SetMinimumSize: Any

SetNoConstraint instance-attribute

SetNoConstraint: Any

SizeConstraint instance-attribute

SizeConstraint: 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

TopToBottom instance-attribute

TopToBottom: Any

Up instance-attribute

Up: Any

activate

activate() -> bool

X.activate() -> bool

addChildLayout

addChildLayout(l: Any) -> Any

X.addChildLayout(l)

addChildWidget

addChildWidget(w: Any) -> Any

X.addChildWidget(w)

addItem

addItem(arg__1: Any) -> None

X.addItem(arg__1)

Supplemental documentation: Qt 5 reference:

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

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

Upstream PySide2 reference signatures (binding differences may apply):

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

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

addLayout

addLayout(layout: Any, stretch: int) -> None

X.addLayout(layout, stretch)

Supplemental documentation: Qt 5 reference:

void QBoxLayout::addLayout(QLayout *layout, int stretch \= 0)

Adds layout to the end of the box, with serial stretch factor stretch.

See also insertLayout(), addItem(), and addWidget().

Upstream PySide2 reference signatures (binding differences may apply):

addLayout(self, layout: PySide2.QtWidgets.QLayout, stretch: int=...) -> None

Source: https://doc.qt.io/archives/qt-5.15/qboxlayout.html#addLayout

addSpacerItem

addSpacerItem(spacerItem: Any) -> None

X.addSpacerItem(spacerItem)

Supplemental documentation: Qt 5 reference:

void QBoxLayout::addSpacerItem(QSpacerItem *spacerItem)

Adds spacerItem to the end of this box layout.

This function was introduced in Qt 4.4.

See also addSpacing() and addStretch().

Upstream PySide2 reference signatures (binding differences may apply):

addSpacerItem(self, spacerItem: PySide2.QtWidgets.QSpacerItem) -> None

Source: https://doc.qt.io/archives/qt-5.15/qboxlayout.html#addSpacerItem

addSpacing

addSpacing(size: int) -> None

X.addSpacing(size)

Supplemental documentation: Qt 5 reference:

void QBoxLayout::addSpacing(int size)

Adds a non-stretchable space (a QSpacerItem) with size size to the end of this box layout. QBoxLayout provides default margin and spacing. This function adds additional space.

See also insertSpacing(), addItem(), and QSpacerItem.

Upstream PySide2 reference signatures (binding differences may apply):

addSpacing(self, size: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qboxlayout.html#addSpacing

addStretch

addStretch(stretch: int) -> None

X.addStretch(stretch)

Supplemental documentation: Qt 5 reference:

void QBoxLayout::addStretch(int stretch \= 0)

Adds a stretchable space (a QSpacerItem) with zero minimum size and stretch factor stretch to the end of this box layout.

See also insertStretch(), addItem(), and QSpacerItem.

Upstream PySide2 reference signatures (binding differences may apply):

addStretch(self, stretch: int=...) -> None

Source: https://doc.qt.io/archives/qt-5.15/qboxlayout.html#addStretch

addStrut

addStrut(arg__1: int) -> None

X.addStrut(arg__1)

Supplemental documentation: Qt 5 reference:

void QBoxLayout::addStrut(int size)

Limits the perpendicular dimension of the box (e.g. height if the box is LeftToRight) to a minimum of size. Other constraints may increase the limit.

See also addItem().

Upstream PySide2 reference signatures (binding differences may apply):

addStrut(self, arg__1: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qboxlayout.html#addStrut

addWidget

addWidget(arg__1: Any, stretch: Any, alignment: Any) -> None

X.addWidget(arg__1, stretch, alignment)

Supplemental documentation: Qt 5 reference:

void QBoxLayout::addWidget(QWidget *widget, int stretch \= 0, Qt::Alignment alignment \= Qt::Alignment())

Adds widget to the end of this box layout, with a stretch factor of stretch and alignment alignment.

The stretch factor applies only in the direction of the QBoxLayout, and is relative to the other boxes and widgets in this QBoxLayout. Widgets and boxes with higher stretch factors grow more.

If the stretch factor is 0 and nothing else in the QBoxLayout has a stretch factor greater than zero, the space is distributed according to the QWidget:sizePolicy() of each widget that's involved.

The alignment is specified by alignment. The default alignment is 0, which means that the widget fills the entire cell.

See also insertWidget(), addItem(), addLayout(), addStretch(), addSpacing(), and addStrut().

Upstream PySide2 reference signatures (binding differences may apply):

addWidget(self, arg__1: PySide2.QtWidgets.QWidget, stretch: int=..., alignment: PySide2.QtCore.Qt.Alignment=...) -> None
addWidget(self, w: PySide2.QtWidgets.QWidget) -> None

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

adoptLayout

adoptLayout(layout: Any) -> bool

X.adoptLayout(layout) -> bool

alignment

alignment() -> Any

X.alignment()

alignmentRect

alignmentRect(arg__1: Any) -> Any

X.alignmentRect(arg__1) -> PythonQt.QtCore.QRect

childEvent

childEvent(e: Any) -> Any

X.childEvent(e)

closestAcceptableSize

closestAcceptableSize(w: Any, s: Any) -> Any

X.closestAcceptableSize(w, s) -> PythonQt.QtCore.QSize

controlTypes

controlTypes() -> Any

X.controlTypes()

count

count() -> int

X.count() -> int

Supplemental documentation: Qt 5 reference:

[override virtual] int QBoxLayout::count() const

Reimplements: QLayout::count() const.

Upstream PySide2 reference signatures (binding differences may apply):

count(self) -> int

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

destroyed

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

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

direction

direction() -> Any

X.direction()

Supplemental documentation: Qt 5 reference:

QBoxLayout::Direction QBoxLayout::direction() const

Returns the direction of the box. addWidget() and addSpacing() work in this direction; the stretch stretches in this direction.

See also setDirection(), QBoxLayout::Direction, addWidget(), and addSpacing().

Upstream PySide2 reference signatures (binding differences may apply):

direction(self) -> PySide2.QtWidgets.QBoxLayout.Direction

Source: https://doc.qt.io/archives/qt-5.15/qboxlayout.html#direction

expandingDirections

expandingDirections() -> Any

X.expandingDirections()

Supplemental documentation: Qt 5 reference:

[override virtual] Qt::Orientations QBoxLayout::expandingDirections() const

Reimplements: QLayout::expandingDirections() const.

Upstream PySide2 reference signatures (binding differences may apply):

expandingDirections(self) -> PySide2.QtCore.Qt.Orientations

Source: https://doc.qt.io/archives/qt-5.15/qboxlayout.html#expandingDirections

geometry

geometry() -> Any

X.geometry() -> PythonQt.QtCore.QRect

hasHeightForWidth

hasHeightForWidth() -> bool

X.hasHeightForWidth() -> bool

Supplemental documentation: Qt 5 reference:

[override virtual] bool QBoxLayout::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/qboxlayout.html#hasHeightForWidth

heightForWidth

heightForWidth(arg__1: int) -> int

X.heightForWidth(arg__1) -> int

Supplemental documentation: Qt 5 reference:

[override virtual] int QBoxLayout::heightForWidth(int w) const

Reimplements: QLayoutItem::heightForWidth(int ) const.

Upstream PySide2 reference signatures (binding differences may apply):

heightForWidth(self, arg__1: int) -> int

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

indexOf

indexOf(arg__1: Any) -> int

X.indexOf(arg__1) -> int

insertItem

insertItem(index: int, arg__2: Any) -> None

X.insertItem(index, arg__2)

Supplemental documentation: Qt 5 reference:

void QBoxLayout::insertItem(int index, QLayoutItem *item)

Inserts item into this box layout at position index. If index is negative, the item is added at the end.

See also addItem(), insertWidget(), insertLayout(), insertStretch(), and insertSpacing().

Upstream PySide2 reference signatures (binding differences may apply):

insertItem(self, index: int, arg__2: PySide2.QtWidgets.QLayoutItem) -> None

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

insertLayout

insertLayout(index: int, layout: Any, stretch: int) -> None

X.insertLayout(index, layout, stretch)

Supplemental documentation: Qt 5 reference:

void QBoxLayout::insertLayout(int index, QLayout *layout, int stretch \= 0)

Inserts layout at position index, with stretch factor stretch. If index is negative, the layout is added at the end.

layout becomes a child of the box layout.

See also addLayout() and insertItem().

Upstream PySide2 reference signatures (binding differences may apply):

insertLayout(self, index: int, layout: PySide2.QtWidgets.QLayout, stretch: int=...) -> None

Source: https://doc.qt.io/archives/qt-5.15/qboxlayout.html#insertLayout

insertSpacerItem

insertSpacerItem(index: int, spacerItem: Any) -> None

X.insertSpacerItem(index, spacerItem)

Supplemental documentation: Qt 5 reference:

void QBoxLayout::insertSpacerItem(int index, QSpacerItem *spacerItem)

Inserts spacerItem at position index, with zero minimum size and stretch factor. If index is negative the space is added at the end.

This function was introduced in Qt 4.4.

See also addSpacerItem(), insertStretch(), and insertSpacing().

Upstream PySide2 reference signatures (binding differences may apply):

insertSpacerItem(self, index: int, spacerItem: PySide2.QtWidgets.QSpacerItem) -> None

Source: https://doc.qt.io/archives/qt-5.15/qboxlayout.html#insertSpacerItem

insertSpacing

insertSpacing(index: int, size: int) -> None

X.insertSpacing(index, size)

Supplemental documentation: Qt 5 reference:

void QBoxLayout::insertSpacing(int index, int size)

Inserts a non-stretchable space (a QSpacerItem) at position index, with size size. If index is negative the space is added at the end.

The box layout has default margin and spacing. This function adds additional space.

See also addSpacing(), insertItem(), and QSpacerItem.

Upstream PySide2 reference signatures (binding differences may apply):

insertSpacing(self, index: int, size: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qboxlayout.html#insertSpacing

insertStretch

insertStretch(index: int, stretch: int) -> None

X.insertStretch(index, stretch)

Supplemental documentation: Qt 5 reference:

void QBoxLayout::insertStretch(int index, int stretch \= 0)

Inserts a stretchable space (a QSpacerItem) at position index, with zero minimum size and stretch factor stretch. If index is negative the space is added at the end.

See also addStretch(), insertItem(), and QSpacerItem.

Upstream PySide2 reference signatures (binding differences may apply):

insertStretch(self, index: int, stretch: int=...) -> None

Source: https://doc.qt.io/archives/qt-5.15/qboxlayout.html#insertStretch