Skip to content

BoxLayout

Qt Base Class: QBoxLayout

Signature: QBoxLayout(self, arg__1: PySide6.QtWidgets.QBoxLayout.Direction, parent: Optional[PySide6.QtWidgets.QWidget] = None) -> None

Base classes

Name Children Inherits
BoxLayoutMixin
prettyqt.widgets.boxlayout
QBoxLayout
PySide6.QtWidgets
QBoxLayout(self, arg__1: PySide6.QtWidgets.QBoxLayout.Direction, parent: Optional[PySide6.QtWidgets.QWidget] \= None) -> None

Subclasses

Class Module Description
MultiLineLayout prettyqt.custom_widgets.layouts.multilinelayout

⋔ Inheritance diagram

graph TD
  1473296355440["widgets.BoxLayout"]
  1473296351536["widgets.BoxLayoutMixin"]
  1473296333968["widgets.LayoutMixin"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473296346656["widgets.LayoutItemMixin"]
  1473365797232["QtWidgets.QBoxLayout"]
  1473365768928["QtWidgets.QLayout"]
  1473288842240["QtCore.QObject"]
  1473291690208["Shiboken.Object"]
  1473290791120["QtWidgets.QLayoutItem"]
  1473296351536 --> 1473296355440
  1473296333968 --> 1473296351536
  1473299815024 --> 1473296333968
  140713234304496 --> 1473299815024
  1473296346656 --> 1473296333968
  140713234304496 --> 1473296346656
  1473365797232 --> 1473296355440
  1473365768928 --> 1473365797232
  1473288842240 --> 1473365768928
  1473291690208 --> 1473288842240
  140713234304496 --> 1473291690208
  1473290791120 --> 1473365768928
  1473291690208 --> 1473290791120

🛈 DocStrings

Bases: BoxLayoutMixin, QBoxLayout

Lines up child widgets horizontally or vertically.

Source code in prettyqt\widgets\boxlayout.py
class BoxLayout(BoxLayoutMixin, widgets.QBoxLayout):
    """Lines up child widgets horizontally or vertically."""

    ID = "box"
    pass

⌗ Property table

Qt Property Type Doc
objectName QString
spacing int
contentsMargins QMargins
sizeConstraint QLayout::SizeConstraint