Skip to content

HBoxLayout

Qt Base Class: QHBoxLayout

Signature: QHBoxLayout(self) -> None QHBoxLayout(self, parent: PySide6.QtWidgets.QWidget) -> None

Base classes

Name Children Inherits
BoxLayoutMixin
prettyqt.widgets.boxlayout
QHBoxLayout
PySide6.QtWidgets
QHBoxLayout(self) -> None

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: BoxLayoutMixin, QHBoxLayout

Lines up widgets horizontally.

Source code in prettyqt\widgets\hboxlayout.py
6
7
8
9
class HBoxLayout(widgets.boxlayout.BoxLayoutMixin, widgets.QHBoxLayout):
    """Lines up widgets horizontally."""

    ID = "horizontal"

⌗ Property table

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