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 « 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: 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
AllNonFixedFieldsGrowPySide2.QtWidgets.QFormLayout.FieldGrowthPolicy.AllNonFixedFieldsGrow
DontWrapRowsPySide2.QtWidgets.QFormLayout.RowWrapPolicy.DontWrapRows
ExpandingFieldsGrowPySide2.QtWidgets.QFormLayout.FieldGrowthPolicy.ExpandingFieldsGrow
FieldRolePySide2.QtWidgets.QFormLayout.ItemRole.FieldRole
FieldsStayAtSizeHintPySide2.QtWidgets.QFormLayout.FieldGrowthPolicy.FieldsStayAtSizeHint
LabelRolePySide2.QtWidgets.QFormLayout.ItemRole.LabelRole
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
SpanningRolePySide2.QtWidgets.QFormLayout.ItemRole.SpanningRole
staticMetaObject<PySide2.QtCore.QMetaObject object at 0x7efe35a3a940>
WrapAllRowsPySide2.QtWidgets.QFormLayout.RowWrapPolicy.WrapAllRows
WrapLongRowsPySide2.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: PySide2.QtWidgets.QLayoutItem) addItem(self, item: PySide2.QtWidgets.QLayoutItem) [extrait de addItem.__doc__]
addRow addRow(self, label: PySide2.QtWidgets.QWidget, field: PySide2.QtWidgets.QLayout) [extrait de addRow.__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__]
FieldGrowthPolicy
fieldGrowthPolicy(self) -> PySide2.QtWidgets.QFormLayout.FieldGrowthPolicy fieldGrowthPolicy(self) -> PySide2.QtWidgets.QFormLayout.FieldGrowthPolicy [extrait de fieldGrowthPolicy.__doc__]
formAlignment(self) -> PySide2.QtCore.Qt.Alignment formAlignment(self) -> PySide2.QtCore.Qt.Alignment [extrait de formAlignment.__doc__]
getItemPosition(self, index: int, rolePtr: PySide2.QtWidgets.QFormLayout.ItemRole) -> int getItemPosition(self, index: int, rolePtr: PySide2.QtWidgets.QFormLayout.ItemRole) -> int [extrait de getItemPosition.__doc__]
getLayoutPosition(self, layout: PySide2.QtWidgets.QLayout, rolePtr: PySide2.QtWidgets.QFormLayout.ItemRole) -> int getLayoutPosition(self, layout: PySide2.QtWidgets.QLayout, rolePtr: PySide2.QtWidgets.QFormLayout.ItemRole) -> int [extrait de getLayoutPosition.__doc__]
getWidgetPosition(self, widget: PySide2.QtWidgets.QWidget, rolePtr: PySide2.QtWidgets.QFormLayout.ItemRole) -> int getWidgetPosition(self, widget: PySide2.QtWidgets.QWidget, rolePtr: PySide2.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: PySide2.QtWidgets.QWidget, field: PySide2.QtWidgets.QLayout) [extrait de insertRow.__doc__]
invalidate(self) invalidate(self) [extrait de invalidate.__doc__]
itemAt itemAt(self, index: int) -> PySide2.QtWidgets.QLayoutItem [extrait de itemAt.__doc__]
ItemRole
labelAlignment(self) -> PySide2.QtCore.Qt.Alignment labelAlignment(self) -> PySide2.QtCore.Qt.Alignment [extrait de labelAlignment.__doc__]
labelForField labelForField(self, field: PySide2.QtWidgets.QLayout) -> PySide2.QtWidgets.QWidget [extrait de labelForField.__doc__]
minimumSize(self) -> PySide2.QtCore.QSize minimumSize(self) -> PySide2.QtCore.QSize [extrait de minimumSize.__doc__]
objectNameChanged
removeRow removeRow(self, layout: PySide2.QtWidgets.QLayout) [extrait de removeRow.__doc__]
rowCount(self) -> int rowCount(self) -> int [extrait de rowCount.__doc__]
RowWrapPolicy
rowWrapPolicy(self) -> PySide2.QtWidgets.QFormLayout.RowWrapPolicy rowWrapPolicy(self) -> PySide2.QtWidgets.QFormLayout.RowWrapPolicy [extrait de rowWrapPolicy.__doc__]
setFieldGrowthPolicy(self, policy: PySide2.QtWidgets.QFormLayout.FieldGrowthPolicy) setFieldGrowthPolicy(self, policy: PySide2.QtWidgets.QFormLayout.FieldGrowthPolicy) [extrait de setFieldGrowthPolicy.__doc__]
setFormAlignment(self, alignment: PySide2.QtCore.Qt.Alignment) setFormAlignment(self, alignment: PySide2.QtCore.Qt.Alignment) [extrait de setFormAlignment.__doc__]
setGeometry(self, rect: PySide2.QtCore.QRect) setGeometry(self, rect: PySide2.QtCore.QRect) [extrait de setGeometry.__doc__]
setHorizontalSpacing(self, spacing: int) setHorizontalSpacing(self, spacing: int) [extrait de setHorizontalSpacing.__doc__]
setItem(self, row: int, role: PySide2.QtWidgets.QFormLayout.ItemRole, item: PySide2.QtWidgets.QLayoutItem) setItem(self, row: int, role: PySide2.QtWidgets.QFormLayout.ItemRole, item: PySide2.QtWidgets.QLayoutItem) [extrait de setItem.__doc__]
setLabelAlignment(self, alignment: PySide2.QtCore.Qt.Alignment) setLabelAlignment(self, alignment: PySide2.QtCore.Qt.Alignment) [extrait de setLabelAlignment.__doc__]
setLayout(self, row: int, role: PySide2.QtWidgets.QFormLayout.ItemRole, layout: PySide2.QtWidgets.QLayout) setLayout(self, row: int, role: PySide2.QtWidgets.QFormLayout.ItemRole, layout: PySide2.QtWidgets.QLayout) [extrait de setLayout.__doc__]
setRowWrapPolicy(self, policy: PySide2.QtWidgets.QFormLayout.RowWrapPolicy) setRowWrapPolicy(self, policy: PySide2.QtWidgets.QFormLayout.RowWrapPolicy) [extrait de setRowWrapPolicy.__doc__]
setSpacing(self, arg__1: int) setSpacing(self, arg__1: int) [extrait de setSpacing.__doc__]
setVerticalSpacing(self, spacing: int) setVerticalSpacing(self, spacing: int) [extrait de setVerticalSpacing.__doc__]
setWidget(self, row: int, role: PySide2.QtWidgets.QFormLayout.ItemRole, widget: PySide2.QtWidgets.QWidget) setWidget(self, row: int, role: PySide2.QtWidgets.QFormLayout.ItemRole, widget: PySide2.QtWidgets.QWidget) [extrait de setWidget.__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__]
takeAt(self, index: int) -> PySide2.QtWidgets.QLayoutItem takeAt(self, index: int) -> PySide2.QtWidgets.QLayoutItem [extrait de takeAt.__doc__]
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, margin, maximumSize, 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, 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, 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__