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 « PySide6.QtWidgets »

Classe « QFormLayout »

Informations générales

Héritage

builtins.object
    Object
        QLayoutItem
builtins.object
    Object
        QObject
            QLayout
                QFormLayout

Définition

class QFormLayout(QLayout):

Description [extrait de QFormLayout.__doc__]

QFormLayout(self, parent: Optional[PySide6.QtWidgets.QWidget] = None) -> 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, parent: Optional[PySide6.QtWidgets.QWidget] = None) -> None __init__(self, parent: Optional[PySide6.QtWidgets.QWidget] = None) -> None [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
AllNonFixedFieldsGrowPySide6.QtWidgets.QFormLayout.FieldGrowthPolicy.AllNonFixedFieldsGrow
DontWrapRowsPySide6.QtWidgets.QFormLayout.RowWrapPolicy.DontWrapRows
ExpandingFieldsGrowPySide6.QtWidgets.QFormLayout.FieldGrowthPolicy.ExpandingFieldsGrow
FieldRolePySide6.QtWidgets.QFormLayout.ItemRole.FieldRole
FieldsStayAtSizeHintPySide6.QtWidgets.QFormLayout.FieldGrowthPolicy.FieldsStayAtSizeHint
LabelRolePySide6.QtWidgets.QFormLayout.ItemRole.LabelRole
SetDefaultConstraintPySide6.QtWidgets.QLayout.SizeConstraint.SetDefaultConstraint
SetFixedSizePySide6.QtWidgets.QLayout.SizeConstraint.SetFixedSize
SetMaximumSizePySide6.QtWidgets.QLayout.SizeConstraint.SetMaximumSize
SetMinAndMaxSizePySide6.QtWidgets.QLayout.SizeConstraint.SetMinAndMaxSize
SetMinimumSizePySide6.QtWidgets.QLayout.SizeConstraint.SetMinimumSize
SetNoConstraintPySide6.QtWidgets.QLayout.SizeConstraint.SetNoConstraint
SpanningRolePySide6.QtWidgets.QFormLayout.ItemRole.SpanningRole
staticMetaObject<PySide6.QtCore.QMetaObject object at 0x7f40dfeb5240>
WrapAllRowsPySide6.QtWidgets.QFormLayout.RowWrapPolicy.WrapAllRows
WrapLongRowsPySide6.QtWidgets.QFormLayout.RowWrapPolicy.WrapLongRows

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, item: PySide6.QtWidgets.QLayoutItem) -> None addItem(self, item: PySide6.QtWidgets.QLayoutItem) -> None [extrait de addItem.__doc__]
addRow addRow(self, label: PySide6.QtWidgets.QWidget, field: PySide6.QtWidgets.QLayout) -> None [extrait de addRow.__doc__]
count(self) -> int count(self) -> int [extrait de count.__doc__]
destroyed
expandingDirections(self) -> PySide6.QtCore.Qt.Orientations expandingDirections(self) -> PySide6.QtCore.Qt.Orientations [extrait de expandingDirections.__doc__]
FieldGrowthPolicy
fieldGrowthPolicy(self) -> PySide6.QtWidgets.QFormLayout.FieldGrowthPolicy fieldGrowthPolicy(self) -> PySide6.QtWidgets.QFormLayout.FieldGrowthPolicy [extrait de fieldGrowthPolicy.__doc__]
formAlignment(self) -> PySide6.QtCore.Qt.Alignment formAlignment(self) -> PySide6.QtCore.Qt.Alignment [extrait de formAlignment.__doc__]
getItemPosition(self, index: int, rolePtr: PySide6.QtWidgets.QFormLayout.ItemRole) -> int getItemPosition(self, index: int, rolePtr: PySide6.QtWidgets.QFormLayout.ItemRole) -> int [extrait de getItemPosition.__doc__]
getLayoutPosition(self, layout: PySide6.QtWidgets.QLayout, rolePtr: PySide6.QtWidgets.QFormLayout.ItemRole) -> int getLayoutPosition(self, layout: PySide6.QtWidgets.QLayout, rolePtr: PySide6.QtWidgets.QFormLayout.ItemRole) -> int [extrait de getLayoutPosition.__doc__]
getWidgetPosition(self, widget: PySide6.QtWidgets.QWidget, rolePtr: PySide6.QtWidgets.QFormLayout.ItemRole) -> int getWidgetPosition(self, widget: PySide6.QtWidgets.QWidget, rolePtr: PySide6.QtWidgets.QFormLayout.ItemRole) -> int [extrait de getWidgetPosition.__doc__]
hasHeightForWidth(self) -> bool hasHeightForWidth(self) -> bool [extrait de hasHeightForWidth.__doc__]
heightForWidth(self, width: int) -> int heightForWidth(self, width: int) -> int [extrait de heightForWidth.__doc__]
horizontalSpacing(self) -> int horizontalSpacing(self) -> int [extrait de horizontalSpacing.__doc__]
insertRow insertRow(self, row: int, label: PySide6.QtWidgets.QWidget, field: PySide6.QtWidgets.QLayout) -> None [extrait de insertRow.__doc__]
invalidate(self) -> None invalidate(self) -> None [extrait de invalidate.__doc__]
itemAt itemAt(self, index: int) -> PySide6.QtWidgets.QLayoutItem [extrait de itemAt.__doc__]
ItemRole
labelAlignment(self) -> PySide6.QtCore.Qt.Alignment labelAlignment(self) -> PySide6.QtCore.Qt.Alignment [extrait de labelAlignment.__doc__]
labelForField labelForField(self, field: PySide6.QtWidgets.QLayout) -> PySide6.QtWidgets.QWidget [extrait de labelForField.__doc__]
minimumSize(self) -> PySide6.QtCore.QSize minimumSize(self) -> PySide6.QtCore.QSize [extrait de minimumSize.__doc__]
objectNameChanged
removeRow removeRow(self, layout: PySide6.QtWidgets.QLayout) -> None [extrait de removeRow.__doc__]
rowCount(self) -> int rowCount(self) -> int [extrait de rowCount.__doc__]
RowWrapPolicy
rowWrapPolicy(self) -> PySide6.QtWidgets.QFormLayout.RowWrapPolicy rowWrapPolicy(self) -> PySide6.QtWidgets.QFormLayout.RowWrapPolicy [extrait de rowWrapPolicy.__doc__]
setFieldGrowthPolicy(self, policy: PySide6.QtWidgets.QFormLayout.FieldGrowthPolicy) -> None setFieldGrowthPolicy(self, policy: PySide6.QtWidgets.QFormLayout.FieldGrowthPolicy) -> None [extrait de setFieldGrowthPolicy.__doc__]
setFormAlignment(self, alignment: PySide6.QtCore.Qt.Alignment) -> None setFormAlignment(self, alignment: PySide6.QtCore.Qt.Alignment) -> None [extrait de setFormAlignment.__doc__]
setGeometry(self, rect: PySide6.QtCore.QRect) -> None setGeometry(self, rect: PySide6.QtCore.QRect) -> None [extrait de setGeometry.__doc__]
setHorizontalSpacing(self, spacing: int) -> None setHorizontalSpacing(self, spacing: int) -> None [extrait de setHorizontalSpacing.__doc__]
setItem(self, row: int, role: PySide6.QtWidgets.QFormLayout.ItemRole, item: PySide6.QtWidgets.QLayoutItem) -> None setItem(self, row: int, role: PySide6.QtWidgets.QFormLayout.ItemRole, item: PySide6.QtWidgets.QLayoutItem) -> None [extrait de setItem.__doc__]
setLabelAlignment(self, alignment: PySide6.QtCore.Qt.Alignment) -> None setLabelAlignment(self, alignment: PySide6.QtCore.Qt.Alignment) -> None [extrait de setLabelAlignment.__doc__]
setLayout(self, row: int, role: PySide6.QtWidgets.QFormLayout.ItemRole, layout: PySide6.QtWidgets.QLayout) -> None setLayout(self, row: int, role: PySide6.QtWidgets.QFormLayout.ItemRole, layout: PySide6.QtWidgets.QLayout) -> None [extrait de setLayout.__doc__]
setRowWrapPolicy(self, policy: PySide6.QtWidgets.QFormLayout.RowWrapPolicy) -> None setRowWrapPolicy(self, policy: PySide6.QtWidgets.QFormLayout.RowWrapPolicy) -> None [extrait de setRowWrapPolicy.__doc__]
setSpacing(self, arg__1: int) -> None setSpacing(self, arg__1: int) -> None [extrait de setSpacing.__doc__]
setVerticalSpacing(self, spacing: int) -> None setVerticalSpacing(self, spacing: int) -> None [extrait de setVerticalSpacing.__doc__]
setWidget(self, row: int, role: PySide6.QtWidgets.QFormLayout.ItemRole, widget: PySide6.QtWidgets.QWidget) -> None setWidget(self, row: int, role: PySide6.QtWidgets.QFormLayout.ItemRole, widget: PySide6.QtWidgets.QWidget) -> None [extrait de setWidget.__doc__]
sizeHint(self) -> PySide6.QtCore.QSize sizeHint(self) -> PySide6.QtCore.QSize [extrait de sizeHint.__doc__]
spacing(self) -> int spacing(self) -> int [extrait de spacing.__doc__]
takeAt(self, index: int) -> PySide6.QtWidgets.QLayoutItem takeAt(self, index: int) -> PySide6.QtWidgets.QLayoutItem [extrait de takeAt.__doc__]
tr
verticalSpacing(self) -> int verticalSpacing(self) -> int [extrait de verticalSpacing.__doc__]

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

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

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

__init_subclass__, __subclasshook__, alignment, controlTypes, geometry, isEmpty, layout, maximumSize, minimumHeightForWidth, 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, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent

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

__getattribute__, __init_subclass__, __subclasshook__

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

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