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 « QLayout »

Informations générales

Héritage

builtins.object
    Object
        QLayoutItem
builtins.object
    Object
        QObject
            QLayout

Définition

class QLayout(QObject, QLayoutItem):

Description [extrait de QLayout.__doc__]

QLayout(self)
QLayout(self, parent: PySide2.QtWidgets.QWidget)

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
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 0x7efe35a35100>

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__]
activate(self) -> bool activate(self) -> bool [extrait de activate.__doc__]
addChildLayout(self, l: PySide2.QtWidgets.QLayout) addChildLayout(self, l: PySide2.QtWidgets.QLayout) [extrait de addChildLayout.__doc__]
addChildWidget(self, w: PySide2.QtWidgets.QWidget) addChildWidget(self, w: PySide2.QtWidgets.QWidget) [extrait de addChildWidget.__doc__]
addItem(self, arg__1: PySide2.QtWidgets.QLayoutItem) addItem(self, arg__1: PySide2.QtWidgets.QLayoutItem) [extrait de addItem.__doc__]
addWidget(self, w: PySide2.QtWidgets.QWidget) addWidget(self, w: PySide2.QtWidgets.QWidget) [extrait de addWidget.__doc__]
adoptLayout(self, layout: PySide2.QtWidgets.QLayout) -> bool adoptLayout(self, layout: PySide2.QtWidgets.QLayout) -> bool [extrait de adoptLayout.__doc__]
alignmentRect(self, arg__1: PySide2.QtCore.QRect) -> PySide2.QtCore.QRect alignmentRect(self, arg__1: PySide2.QtCore.QRect) -> PySide2.QtCore.QRect [extrait de alignmentRect.__doc__]
childEvent(self, e: PySide2.QtCore.QChildEvent) childEvent(self, e: PySide2.QtCore.QChildEvent) [extrait de childEvent.__doc__]
closestAcceptableSize(w: PySide2.QtWidgets.QWidget, s: PySide2.QtCore.QSize) -> PySide2.QtCore.QSize closestAcceptableSize(w: PySide2.QtWidgets.QWidget, s: PySide2.QtCore.QSize) -> PySide2.QtCore.QSize [extrait de closestAcceptableSize.__doc__]
contentsMargins(self) -> PySide2.QtCore.QMargins contentsMargins(self) -> PySide2.QtCore.QMargins [extrait de contentsMargins.__doc__]
contentsRect(self) -> PySide2.QtCore.QRect contentsRect(self) -> PySide2.QtCore.QRect [extrait de contentsRect.__doc__]
controlTypes(self) -> PySide2.QtWidgets.QSizePolicy.ControlTypes controlTypes(self) -> PySide2.QtWidgets.QSizePolicy.ControlTypes [extrait de controlTypes.__doc__]
count(self) -> int count(self) -> int [extrait de count.__doc__]
destroyed
expandingDirections(self) -> PySide2.QtCore.Qt.Orientations expandingDirections(self) -> PySide2.QtCore.Qt.Orientations [extrait de expandingDirections.__doc__]
geometry(self) -> PySide2.QtCore.QRect geometry(self) -> PySide2.QtCore.QRect [extrait de geometry.__doc__]
getContentsMargins(self) -> typing.Tuple[int, int, int, int] getContentsMargins(self) -> typing.Tuple[int, int, int, int] [extrait de getContentsMargins.__doc__]
indexOf indexOf(self, arg__1: PySide2.QtWidgets.QLayoutItem) -> int [extrait de indexOf.__doc__]
invalidate(self) invalidate(self) [extrait de invalidate.__doc__]
isEmpty(self) -> bool isEmpty(self) -> bool [extrait de isEmpty.__doc__]
isEnabled(self) -> bool isEnabled(self) -> bool [extrait de isEnabled.__doc__]
itemAt(self, index: int) -> PySide2.QtWidgets.QLayoutItem itemAt(self, index: int) -> PySide2.QtWidgets.QLayoutItem [extrait de itemAt.__doc__]
layout(self) -> PySide2.QtWidgets.QLayout layout(self) -> PySide2.QtWidgets.QLayout [extrait de layout.__doc__]
margin(self) -> int margin(self) -> int [extrait de margin.__doc__]
maximumSize(self) -> PySide2.QtCore.QSize maximumSize(self) -> PySide2.QtCore.QSize [extrait de maximumSize.__doc__]
menuBar(self) -> PySide2.QtWidgets.QWidget menuBar(self) -> PySide2.QtWidgets.QWidget [extrait de menuBar.__doc__]
minimumSize(self) -> PySide2.QtCore.QSize minimumSize(self) -> PySide2.QtCore.QSize [extrait de minimumSize.__doc__]
objectNameChanged
parentWidget(self) -> PySide2.QtWidgets.QWidget parentWidget(self) -> PySide2.QtWidgets.QWidget [extrait de parentWidget.__doc__]
removeItem(self, arg__1: PySide2.QtWidgets.QLayoutItem) removeItem(self, arg__1: PySide2.QtWidgets.QLayoutItem) [extrait de removeItem.__doc__]
removeWidget(self, w: PySide2.QtWidgets.QWidget) removeWidget(self, w: PySide2.QtWidgets.QWidget) [extrait de removeWidget.__doc__]
replaceWidget(self, from_: PySide2.QtWidgets.QWidget, to: PySide2.QtWidgets.QWidget, options: PySide2.QtCore.Qt.FindChildOptions = PySide2.QtCore.Qt.FindChildOption.FindChildrenRecursively) -> PySide2.QtWidgets.QLayoutItem replaceWidget(self, from_: PySide2.QtWidgets.QWidget, to: PySide2.QtWidgets.QWidget, options: PySide2.QtCore.Qt.FindChildOptions = PySide2.QtCore.Qt.FindChildOption.FindChildrenRecursively) -> PySide2.QtWidgets.QLayoutItem [extrait de replaceWidget.__doc__]
setAlignment setAlignment(self, arg__1: PySide2.QtCore.Qt.Alignment) [extrait de setAlignment.__doc__]
setContentsMargins setContentsMargins(self, left: int, top: int, right: int, bottom: int) [extrait de setContentsMargins.__doc__]
setEnabled(self, arg__1: bool) setEnabled(self, arg__1: bool) [extrait de setEnabled.__doc__]
setGeometry(self, arg__1: PySide2.QtCore.QRect) setGeometry(self, arg__1: PySide2.QtCore.QRect) [extrait de setGeometry.__doc__]
setMargin(self, arg__1: int) setMargin(self, arg__1: int) [extrait de setMargin.__doc__]
setMenuBar(self, w: PySide2.QtWidgets.QWidget) setMenuBar(self, w: PySide2.QtWidgets.QWidget) [extrait de setMenuBar.__doc__]
setSizeConstraint(self, arg__1: PySide2.QtWidgets.QLayout.SizeConstraint) setSizeConstraint(self, arg__1: PySide2.QtWidgets.QLayout.SizeConstraint) [extrait de setSizeConstraint.__doc__]
setSpacing(self, arg__1: int) setSpacing(self, arg__1: int) [extrait de setSpacing.__doc__]
SizeConstraint
sizeConstraint(self) -> PySide2.QtWidgets.QLayout.SizeConstraint sizeConstraint(self) -> PySide2.QtWidgets.QLayout.SizeConstraint [extrait de sizeConstraint.__doc__]
spacing(self) -> int spacing(self) -> int [extrait de spacing.__doc__]
takeAt(self, index: int) -> PySide2.QtWidgets.QLayoutItem takeAt(self, index: int) -> PySide2.QtWidgets.QLayoutItem [extrait de takeAt.__doc__]
totalHeightForWidth(self, w: int) -> int totalHeightForWidth(self, w: int) -> int [extrait de totalHeightForWidth.__doc__]
totalMaximumSize(self) -> PySide2.QtCore.QSize totalMaximumSize(self) -> PySide2.QtCore.QSize [extrait de totalMaximumSize.__doc__]
totalMinimumSize(self) -> PySide2.QtCore.QSize totalMinimumSize(self) -> PySide2.QtCore.QSize [extrait de totalMinimumSize.__doc__]
totalSizeHint(self) -> PySide2.QtCore.QSize totalSizeHint(self) -> PySide2.QtCore.QSize [extrait de totalSizeHint.__doc__]
update(self) update(self) [extrait de update.__doc__]
widgetEvent(self, arg__1: PySide2.QtCore.QEvent) widgetEvent(self, arg__1: PySide2.QtCore.QEvent) [extrait de widgetEvent.__doc__]

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

__init_subclass__, __subclasshook__, alignment, hasHeightForWidth, heightForWidth, minimumHeightForWidth, sizeHint, spacerItem, widget

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

__getattribute__, __init_subclass__, __repr__, __subclasshook__, blockSignals, 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__