Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide2.QtWidgets »

Classe « QBoxLayout »

Informations générales

Héritage

builtins.object
    Object
        QLayoutItem
builtins.object
    Object
        QObject
            QLayout
                QBoxLayout

Définition

class QBoxLayout(QLayout):

Description [extrait de QBoxLayout.__doc__]

QBoxLayout(self, arg__1: PySide2.QtWidgets.QBoxLayout.Direction, parent: typing.Union[PySide2.QtWidgets.QWidget, NoneType] = None)

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
BottomToTopPySide2.QtWidgets.QBoxLayout.Direction.BottomToTop
DownPySide2.QtWidgets.QBoxLayout.Direction.Down
LeftToRightPySide2.QtWidgets.QBoxLayout.Direction.LeftToRight
RightToLeftPySide2.QtWidgets.QBoxLayout.Direction.RightToLeft
SetDefaultConstraintPySide2.QtWidgets.QLayout.SizeConstraint.SetDefaultConstraint
SetFixedSizePySide2.QtWidgets.QLayout.SizeConstraint.SetFixedSize
SetMaximumSizePySide2.QtWidgets.QLayout.SizeConstraint.SetMaximumSize
SetMinAndMaxSizePySide2.QtWidgets.QLayout.SizeConstraint.SetMinAndMaxSize
SetMinimumSizePySide2.QtWidgets.QLayout.SizeConstraint.SetMinimumSize
SetNoConstraintPySide2.QtWidgets.QLayout.SizeConstraint.SetNoConstraint
staticMetaObject<PySide2.QtCore.QMetaObject object at 0x7efe35a35d80>
TopToBottomPySide2.QtWidgets.QBoxLayout.Direction.TopToBottom
UpPySide2.QtWidgets.QBoxLayout.Direction.Up

Attributs statiques hérités de la classe QLayoutItem

align

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__delattr__(self, name) Implement delattr(self, name). [extrait de __delattr__.__doc__]
__setattr__(self, name, value) Implement setattr(self, name, value). [extrait de __setattr__.__doc__]
addItem(self, arg__1: PySide2.QtWidgets.QLayoutItem) addItem(self, arg__1: PySide2.QtWidgets.QLayoutItem) [extrait de addItem.__doc__]
addLayout(self, layout: PySide2.QtWidgets.QLayout, stretch: int = 0) addLayout(self, layout: PySide2.QtWidgets.QLayout, stretch: int = 0) [extrait de addLayout.__doc__]
addSpacerItem(self, spacerItem: PySide2.QtWidgets.QSpacerItem) addSpacerItem(self, spacerItem: PySide2.QtWidgets.QSpacerItem) [extrait de addSpacerItem.__doc__]
addSpacing(self, size: int) addSpacing(self, size: int) [extrait de addSpacing.__doc__]
addStretch(self, stretch: int = 0) addStretch(self, stretch: int = 0) [extrait de addStretch.__doc__]
addStrut(self, arg__1: int) addStrut(self, arg__1: int) [extrait de addStrut.__doc__]
addWidget addWidget(self, arg__1: PySide2.QtWidgets.QWidget, stretch: int = 0, alignment: PySide2.QtCore.Qt.Alignment = Default(Qt.Alignment)) [extrait de addWidget.__doc__]
count(self) -> int count(self) -> int [extrait de count.__doc__]
destroyed
Direction
direction(self) -> PySide2.QtWidgets.QBoxLayout.Direction direction(self) -> PySide2.QtWidgets.QBoxLayout.Direction [extrait de direction.__doc__]
expandingDirections(self) -> PySide2.QtCore.Qt.Orientations expandingDirections(self) -> PySide2.QtCore.Qt.Orientations [extrait de expandingDirections.__doc__]
hasHeightForWidth(self) -> bool hasHeightForWidth(self) -> bool [extrait de hasHeightForWidth.__doc__]
heightForWidth(self, arg__1: int) -> int heightForWidth(self, arg__1: int) -> int [extrait de heightForWidth.__doc__]
insertItem(self, index: int, arg__2: PySide2.QtWidgets.QLayoutItem) insertItem(self, index: int, arg__2: PySide2.QtWidgets.QLayoutItem) [extrait de insertItem.__doc__]
insertLayout(self, index: int, layout: PySide2.QtWidgets.QLayout, stretch: int = 0) insertLayout(self, index: int, layout: PySide2.QtWidgets.QLayout, stretch: int = 0) [extrait de insertLayout.__doc__]
insertSpacerItem(self, index: int, spacerItem: PySide2.QtWidgets.QSpacerItem) insertSpacerItem(self, index: int, spacerItem: PySide2.QtWidgets.QSpacerItem) [extrait de insertSpacerItem.__doc__]
insertSpacing(self, index: int, size: int) insertSpacing(self, index: int, size: int) [extrait de insertSpacing.__doc__]
insertStretch(self, index: int, stretch: int = 0) insertStretch(self, index: int, stretch: int = 0) [extrait de insertStretch.__doc__]
insertWidget(self, index: int, widget: PySide2.QtWidgets.QWidget, stretch: int = 0, alignment: PySide2.QtCore.Qt.Alignment = Default(Qt.Alignment)) insertWidget(self, index: int, widget: PySide2.QtWidgets.QWidget, stretch: int = 0, alignment: PySide2.QtCore.Qt.Alignment = Default(Qt.Alignment)) [extrait de insertWidget.__doc__]
invalidate(self) invalidate(self) [extrait de invalidate.__doc__]
itemAt(self, arg__1: int) -> PySide2.QtWidgets.QLayoutItem itemAt(self, arg__1: int) -> PySide2.QtWidgets.QLayoutItem [extrait de itemAt.__doc__]
maximumSize(self) -> PySide2.QtCore.QSize maximumSize(self) -> PySide2.QtCore.QSize [extrait de maximumSize.__doc__]
minimumHeightForWidth(self, arg__1: int) -> int minimumHeightForWidth(self, arg__1: int) -> int [extrait de minimumHeightForWidth.__doc__]
minimumSize(self) -> PySide2.QtCore.QSize minimumSize(self) -> PySide2.QtCore.QSize [extrait de minimumSize.__doc__]
objectNameChanged
setDirection(self, arg__1: PySide2.QtWidgets.QBoxLayout.Direction) setDirection(self, arg__1: PySide2.QtWidgets.QBoxLayout.Direction) [extrait de setDirection.__doc__]
setGeometry(self, arg__1: PySide2.QtCore.QRect) setGeometry(self, arg__1: PySide2.QtCore.QRect) [extrait de setGeometry.__doc__]
setSpacing(self, spacing: int) setSpacing(self, spacing: int) [extrait de setSpacing.__doc__]
setStretch(self, index: int, stretch: int) setStretch(self, index: int, stretch: int) [extrait de setStretch.__doc__]
setStretchFactor setStretchFactor(self, l: PySide2.QtWidgets.QLayout, stretch: int) -> bool [extrait de setStretchFactor.__doc__]
sizeHint(self) -> PySide2.QtCore.QSize sizeHint(self) -> PySide2.QtCore.QSize [extrait de sizeHint.__doc__]
spacing(self) -> int spacing(self) -> int [extrait de spacing.__doc__]
stretch(self, index: int) -> int stretch(self, index: int) -> int [extrait de stretch.__doc__]
takeAt(self, arg__1: int) -> PySide2.QtWidgets.QLayoutItem takeAt(self, arg__1: int) -> PySide2.QtWidgets.QLayoutItem [extrait de takeAt.__doc__]

Méthodes héritées de la classe QLayout

__init_subclass__, __subclasshook__, activate, addChildLayout, addChildWidget, adoptLayout, alignmentRect, childEvent, closestAcceptableSize, contentsMargins, contentsRect, controlTypes, geometry, getContentsMargins, indexOf, isEmpty, isEnabled, layout, margin, menuBar, parentWidget, removeItem, removeWidget, replaceWidget, setAlignment, setContentsMargins, setEnabled, setMargin, setMenuBar, setSizeConstraint, SizeConstraint, sizeConstraint, totalHeightForWidth, totalMaximumSize, totalMinimumSize, totalSizeHint, update, widgetEvent

Méthodes héritées de la classe QLayoutItem

__init_subclass__, __subclasshook__, alignment, controlTypes, geometry, isEmpty, layout, setAlignment, spacerItem, widget

Méthodes héritées de la classe QObject

__getattribute__, __init_subclass__, __repr__, __subclasshook__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, event, eventFilter, findChild, findChildren, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, parent, property, receivers, registerUserData, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr

Méthodes héritées de la classe Object

__init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__dir__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__