PythonQt.QtGui.QBoxLayout · declarations 002
Back to PythonQt.QtGui.QBoxLayout
insertWidget
insertWidget(index: int, widget: Any, stretch: int, alignment: Any) -> None
X.insertWidget(index, widget, stretch, alignment)
Supplemental documentation: Qt 5 reference:
void QBoxLayout::insertWidget(int index, QWidget *widget, int stretch \= 0, Qt::Alignment alignment \= Qt::Alignment())
Inserts widget at position index, with stretch factor stretch and alignment alignment. If index is negative, the widget is added at the end.
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 addWidget() and insertItem().
Upstream PySide2 reference signatures (binding differences may apply):
insertWidget(self, index: int, widget: PySide2.QtWidgets.QWidget, stretch: int=..., alignment: PySide2.QtCore.Qt.Alignment=...) -> None
Source: https://doc.qt.io/archives/qt-5.15/qboxlayout.html#insertWidget
invalidate
invalidate() -> None
X.invalidate()
Supplemental documentation: Qt 5 reference:
[override virtual] void QBoxLayout::invalidate()
Reimplements: QLayout::invalidate().
Resets cached information.
Upstream PySide2 reference signatures (binding differences may apply):
invalidate(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qboxlayout.html#invalidate
isEmpty
isEmpty() -> bool
X.isEmpty() -> bool
itemAt
itemAt(arg__1: int) -> Any
X.itemAt(arg__1) -> PythonQt.QtGui.QLayoutItem
Supplemental documentation: Qt 5 reference:
[override virtual] QLayoutItem *QBoxLayout::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/qboxlayout.html#itemAt
margin
instance-attribute
margin: Any
maximumSize
maximumSize() -> Any
X.maximumSize() -> PythonQt.QtCore.QSize
Supplemental documentation: Qt 5 reference:
[override virtual] QSize QBoxLayout::maximumSize() const
Reimplements: QLayout::maximumSize() const.
Upstream PySide2 reference signatures (binding differences may apply):
maximumSize(self) -> PySide2.QtCore.QSize
Source: https://doc.qt.io/archives/qt-5.15/qboxlayout.html#maximumSize
menuBar
menuBar() -> Any
X.menuBar() -> PythonQt.QtGui.QWidget
minimumHeightForWidth
minimumHeightForWidth(arg__1: int) -> int
X.minimumHeightForWidth(arg__1) -> int
Supplemental documentation: Qt 5 reference:
[override virtual] int QBoxLayout::minimumHeightForWidth(int w) const
Reimplements: QLayoutItem::minimumHeightForWidth(int w) const.
Upstream PySide2 reference signatures (binding differences may apply):
minimumHeightForWidth(self, arg__1: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qboxlayout.html#minimumHeightForWidth
minimumSize
minimumSize() -> Any
X.minimumSize() -> PythonQt.QtCore.QSize
Supplemental documentation: Qt 5 reference:
[override virtual] QSize QBoxLayout::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/qboxlayout.html#minimumSize
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QBoxLayout.objectNameChanged; argument details are not documented.
removeItem
removeItem(arg__1: Any) -> Any
X.removeItem(arg__1)
removeWidget
removeWidget(w: Any) -> Any
X.removeWidget(w)
replaceWidget
replaceWidget(*args: Any, **kwargs: Any) -> Any
X.replaceWidget(from, to, options) -> PythonQt.QtGui.QLayoutItem
setAlignment
setAlignment(l: Any, alignment: Any) -> bool
X.setAlignment(l, alignment) -> bool
setDirection
setDirection(arg__1: Any) -> None
X.setDirection(arg__1)
Supplemental documentation: Qt 5 reference:
void QBoxLayout::setDirection(QBoxLayout::Direction direction)
Sets the direction of this layout to direction.
See also direction().
Upstream PySide2 reference signatures (binding differences may apply):
setDirection(self, arg__1: PySide2.QtWidgets.QBoxLayout.Direction) -> None
Source: https://doc.qt.io/archives/qt-5.15/qboxlayout.html#setDirection
setEnabled
setEnabled(arg__1: Any) -> Any
X.setEnabled(arg__1)
setGeometry
setGeometry(arg__1: Any) -> None
X.setGeometry(arg__1)
Supplemental documentation: Qt 5 reference:
[override virtual] void QBoxLayout::setGeometry(const QRect \&r)
Reimplements: QLayout::setGeometry(const QRect \&r).
Upstream PySide2 reference signatures (binding differences may apply):
setGeometry(self, arg__1: PySide2.QtCore.QRect) -> None
Source: https://doc.qt.io/archives/qt-5.15/qboxlayout.html#setGeometry
setMargin
setMargin(arg__1: Any) -> Any
X.setMargin(arg__1)
setMenuBar
setMenuBar(w: Any) -> Any
X.setMenuBar(w)
setSizeConstraint
setSizeConstraint(arg__1: Any) -> Any
X.setSizeConstraint(arg__1)
setSpacing
setSpacing(spacing: int) -> None
X.setSpacing(spacing)
Supplemental documentation: Qt 5 reference:
void QBoxLayout::setSpacing(int spacing)
Reimplements QLayout::setSpacing(). Sets the spacing property to spacing.
See also QLayout::setSpacing() and spacing().
Upstream PySide2 reference signatures (binding differences may apply):
setSpacing(self, spacing: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qboxlayout.html#setSpacing
setStretch
setStretch(index: int, stretch: int) -> None
X.setStretch(index, stretch)
Supplemental documentation: Qt 5 reference:
void QBoxLayout::setStretch(int index, int stretch)
Sets the stretch factor at position index. to stretch.
This function was introduced in Qt 4.5.
See also stretch().
Upstream PySide2 reference signatures (binding differences may apply):
setStretch(self, index: int, stretch: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qboxlayout.html#setStretch
setStretchFactor
setStretchFactor(l: Any, stretch: int) -> bool
X.setStretchFactor(l, stretch) -> bool
Supplemental documentation: Qt 5 reference:
bool QBoxLayout::setStretchFactor(QWidget *widget, int stretch)
Sets the stretch factor for widget to stretch and returns true if widget is found
in this layout (not including child layouts); otherwise returns false.
See also setAlignment().
bool QBoxLayout::setStretchFactor(QLayout *layout, int stretch)
This is an overloaded function.
Sets the stretch factor for the layout layout to stretch and returns true if
layout is found in this layout (not including child layouts); otherwise returns
false.
Upstream PySide2 reference signatures (binding differences may apply):
setStretchFactor(self, l: PySide2.QtWidgets.QLayout, stretch: int) -> bool
setStretchFactor(self, w: PySide2.QtWidgets.QWidget, stretch: int) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qboxlayout.html#setStretchFactor
sizeConstraint
instance-attribute
sizeConstraint: Any
sizeHint
sizeHint() -> Any
X.sizeHint() -> PythonQt.QtCore.QSize
Supplemental documentation: Qt 5 reference:
[override virtual] QSize QBoxLayout::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/qboxlayout.html#sizeHint
spacerItem
spacerItem() -> Any
X.spacerItem() -> PythonQt.QtGui.QSpacerItem
spacing
instance-attribute
spacing: int
Qt 5 reference:
int QBoxLayout::spacing() const
Reimplements QLayout::spacing(). If the spacing property is valid, that value is returned. Otherwise, a value for the spacing property is computed and returned. Since layout spacing in a widget is style dependent, if the parent is a widget, it queries the style for the (horizontal or vertical) spacing of the layout. Otherwise, the parent is a layout, and it queries the parent layout for the spacing().
See also QLayout::spacing() and setSpacing().
Source: https://doc.qt.io/archives/qt-5.15/qboxlayout.html#spacing
stretch
stretch(index: int) -> int
X.stretch(index) -> int
Supplemental documentation: Qt 5 reference:
int QBoxLayout::stretch(int index) const
Returns the stretch factor at position index.
This function was introduced in Qt 4.5.
See also setStretch().
Upstream PySide2 reference signatures (binding differences may apply):
stretch(self, index: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qboxlayout.html#stretch
takeAt
takeAt(arg__1: int) -> Any
X.takeAt(arg__1) -> PythonQt.QtGui.QLayoutItem
Supplemental documentation: Qt 5 reference:
[override virtual] QLayoutItem *QBoxLayout::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/qboxlayout.html#takeAt
totalHeightForWidth
totalHeightForWidth(w: Any) -> int
X.totalHeightForWidth(w) -> int
totalMaximumSize
totalMaximumSize() -> Any
X.totalMaximumSize() -> PythonQt.QtCore.QSize
totalMinimumSize
totalMinimumSize() -> Any
X.totalMinimumSize() -> PythonQt.QtCore.QSize
totalSizeHint
totalSizeHint() -> Any
X.totalSizeHint() -> PythonQt.QtCore.QSize
update
update() -> Any
X.update()
widget
widget() -> Any
X.widget() -> PythonQt.QtGui.QWidget
widgetEvent
widgetEvent(arg__1: Any) -> Any
X.widgetEvent(arg__1)