PythonQt.QtGui.QFormLayout · declarations 001
Back to PythonQt.QtGui.QFormLayout
AllNonFixedFieldsGrow
instance-attribute
AllNonFixedFieldsGrow: Any
DontWrapRows
instance-attribute
DontWrapRows: Any
ExpandingFieldsGrow
instance-attribute
ExpandingFieldsGrow: Any
FieldGrowthPolicy
instance-attribute
FieldGrowthPolicy: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
FieldRole
instance-attribute
FieldRole: Any
FieldsStayAtSizeHint
instance-attribute
FieldsStayAtSizeHint: Any
ItemRole
instance-attribute
ItemRole: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
LabelRole
instance-attribute
LabelRole: Any
RowWrapPolicy
instance-attribute
RowWrapPolicy: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
SpanningRole
instance-attribute
SpanningRole: Any
WrapAllRows
instance-attribute
WrapAllRows: Any
WrapLongRows
instance-attribute
WrapLongRows: Any
addItem
addItem(item: Any) -> None
X.addItem(item)
Supplemental documentation: Qt 5 reference:
[override virtual] void QFormLayout::addItem(QLayoutItem *item)
Reimplements: QLayout::addItem(QLayoutItem *item).
Upstream PySide2 reference signatures (binding differences may apply):
addItem(self, item: PySide2.QtWidgets.QLayoutItem) -> None
Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#addItem
addRow
addRow(label: Any, field: Any) -> None
X.addRow(label, field)
Supplemental documentation: Qt 5 reference:
void QFormLayout::addRow(QWidget *label, QWidget *field)
Adds a new row to the bottom of this form layout, with the given label and field.
See also insertRow().
void QFormLayout::addRow(QWidget *label, QLayout *field)
This is an overloaded function.
void QFormLayout::addRow(const QString \&labelText, QWidget *field)
This is an overloaded function.
This overload automatically creates a QLabel behind the scenes with labelText as its text. The field is set as the new QLabel's buddy.
void QFormLayout::addRow(const QString \&labelText, QLayout *field)
This is an overloaded function.
This overload automatically creates a QLabel behind the scenes with labelText as its text.
void QFormLayout::addRow(QWidget *widget)
This is an overloaded function.
Adds the specified widget at the end of this form layout. The widget spans both columns.
void QFormLayout::addRow(QLayout *layout)
This is an overloaded function.
Adds the specified layout at the end of this form layout. The layout spans both columns.
Upstream PySide2 reference signatures (binding differences may apply):
addRow(self, label: PySide2.QtWidgets.QWidget, field: PySide2.QtWidgets.QLayout) -> None
addRow(self, label: PySide2.QtWidgets.QWidget, field: PySide2.QtWidgets.QWidget) -> None
addRow(self, labelText: str, field: PySide2.QtWidgets.QLayout) -> None
addRow(self, labelText: str, field: PySide2.QtWidgets.QWidget) -> None
addRow(self, layout: PySide2.QtWidgets.QLayout) -> None
addRow(self, widget: PySide2.QtWidgets.QWidget) -> None
Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#addRow
addWidget
addWidget(w: Any) -> Any
X.addWidget(w)
count
count() -> int
X.count() -> int
Supplemental documentation: Qt 5 reference:
[override virtual] int QFormLayout::count() const
Reimplements: QLayout::count() const.
Upstream PySide2 reference signatures (binding differences may apply):
count(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#count
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QFormLayout.destroyed; argument details are not documented.
expandingDirections
expandingDirections() -> Any
X.expandingDirections()
Supplemental documentation: Qt 5 reference:
[override virtual] Qt::Orientations QFormLayout::expandingDirections() const
Reimplements: QLayout::expandingDirections() const.
Upstream PySide2 reference signatures (binding differences may apply):
expandingDirections(self) -> PySide2.QtCore.Qt.Orientations
Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#expandingDirections
fieldGrowthPolicy
instance-attribute
fieldGrowthPolicy: Any
Qt 5 reference:
fieldGrowthPolicy : FieldGrowthPolicy
This property holds the way in which the form's fields grow
The default value depends on the widget or application style. For QMacStyle, the default is FieldsStayAtSizeHint; for QCommonStyle derived styles (like Plastique and Windows), the default is ExpandingFieldsGrow; for Qt Extended styles, the default is AllNonFixedFieldsGrow.
If none of the fields can grow and the form is resized, extra space is distributed according to the current form alignment.
Access functions:
| QFormLayout::FieldGrowthPolicy | fieldGrowthPolicy() const |
|---|---|
| void | setFieldGrowthPolicy(QFormLayout::FieldGrowthPolicy policy) |
See also formAlignment and rowWrapPolicy.
Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#fieldGrowthPolicy
formAlignment
instance-attribute
formAlignment: Any
Qt 5 reference:
formAlignment : Qt::Alignment
This property holds the alignment of the form layout's contents within the layout's geometry
The default value depends on the widget or application style. For QMacStyle, the default is Qt::AlignHCenter | Qt::AlignTop; for the other styles, the default is Qt::AlignLeft | Qt::AlignTop.
Access functions:
| Qt::Alignment | formAlignment() const |
|---|---|
| void | setFormAlignment(Qt::Alignment alignment) |
See also labelAlignment and rowWrapPolicy.
Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#formAlignment
getItemPosition
getItemPosition(index: int, rowPtr: Any, rolePtr: Any) -> int
X.getItemPosition(index, rowPtr, rolePtr)
Supplemental documentation: Qt 5 reference:
void QFormLayout::getItemPosition(int index, int *rowPtr, QFormLayout::ItemRole *rolePtr) const
Retrieves the row and role (column) of the item at the specified index. If index is out of bounds, *rowPtr is set to -1; otherwise the row is stored in *rowPtr and the role is stored in *rolePtr.
See also itemAt(), count(), getLayoutPosition(), and getWidgetPosition().
Upstream PySide2 reference signatures (binding differences may apply):
getItemPosition(self, index: int, rolePtr: PySide2.QtWidgets.QFormLayout.ItemRole) -> int
Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#getItemPosition
getLayoutPosition
getLayoutPosition(layout: Any, rowPtr: Any, rolePtr: Any) -> int
X.getLayoutPosition(layout, rowPtr, rolePtr)
Supplemental documentation: Qt 5 reference:
void QFormLayout::getLayoutPosition(QLayout *layout, int *rowPtr, QFormLayout::ItemRole *rolePtr) const
Retrieves the row and role (column) of the specified child layout. If layout is not in the form layout, *rowPtr is set to -1; otherwise the row is stored in *rowPtr and the role is stored in *rolePtr.
Upstream PySide2 reference signatures (binding differences may apply):
getLayoutPosition(self, layout: PySide2.QtWidgets.QLayout, rolePtr: PySide2.QtWidgets.QFormLayout.ItemRole) -> int
Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#getLayoutPosition
getWidgetPosition
getWidgetPosition(widget: Any, rowPtr: Any, rolePtr: Any) -> int
X.getWidgetPosition(widget, rowPtr, rolePtr)
Supplemental documentation: Qt 5 reference:
void QFormLayout::getWidgetPosition(QWidget *widget, int *rowPtr, QFormLayout::ItemRole *rolePtr) const
Retrieves the row and role (column) of the specified widget in the layout. If widget is not in the layout, *rowPtr is set to -1; otherwise the row is stored in *rowPtr and the role is stored in *rolePtr.
See also getItemPosition() and itemAt().
Upstream PySide2 reference signatures (binding differences may apply):
getWidgetPosition(self, widget: PySide2.QtWidgets.QWidget, rolePtr: PySide2.QtWidgets.QFormLayout.ItemRole) -> int
Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#getWidgetPosition
hasHeightForWidth
hasHeightForWidth() -> bool
X.hasHeightForWidth() -> bool
Supplemental documentation: Qt 5 reference:
[override virtual] bool QFormLayout::hasHeightForWidth() const
Reimplements: QLayoutItem::hasHeightForWidth() const.
Upstream PySide2 reference signatures (binding differences may apply):
hasHeightForWidth(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#hasHeightForWidth
heightForWidth
heightForWidth(width: int) -> int
X.heightForWidth(width) -> int
Supplemental documentation: Qt 5 reference:
[override virtual] int QFormLayout::heightForWidth(int width) const
Reimplements: QLayoutItem::heightForWidth(int ) const.
Upstream PySide2 reference signatures (binding differences may apply):
heightForWidth(self, width: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#heightForWidth
horizontalSpacing
instance-attribute
horizontalSpacing: int
Qt 5 reference:
horizontalSpacing : int
This property holds the spacing between widgets that are laid out side by side
By default, if no value is explicitly set, the layout's horizontal spacing is inherited from the parent layout, or from the style settings for the parent widget.
Access functions:
| int | horizontalSpacing() const |
|---|---|
| void | setHorizontalSpacing(int spacing) |
See also verticalSpacing, QStyle::pixelMetric(), and PM_LayoutHorizontalSpacing.
Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#horizontalSpacing
insertRow
insertRow(row: int, label: Any, field: Any) -> None
X.insertRow(row, label, field)
Supplemental documentation: Qt 5 reference:
void QFormLayout::insertRow(int row, QWidget *label, QWidget *field)
Inserts a new row at position row in this form layout, with the given label and field. If row is out of bounds, the new row is added at the end.
See also addRow().
void QFormLayout::insertRow(int row, QWidget *label, QLayout *field)
This is an overloaded function.
void QFormLayout::insertRow(int row, const QString \&labelText, QWidget *field)
This is an overloaded function.
This overload automatically creates a QLabel behind the scenes with labelText as its text. The field is set as the new QLabel's buddy.
void QFormLayout::insertRow(int row, const QString \&labelText, QLayout *field)
This is an overloaded function.
This overload automatically creates a QLabel behind the scenes with labelText as its text.
void QFormLayout::insertRow(int row, QWidget *widget)
This is an overloaded function.
Inserts the specified widget at position row in this form layout. The widget spans both columns. If row is out of bounds, the widget is added at the end.
void QFormLayout::insertRow(int row, QLayout *layout)
This is an overloaded function.
Inserts the specified layout at position row in this form layout. The layout spans both columns. If row is out of bounds, the widget is added at the end.
Upstream PySide2 reference signatures (binding differences may apply):
insertRow(self, row: int, label: PySide2.QtWidgets.QWidget, field: PySide2.QtWidgets.QLayout) -> None
insertRow(self, row: int, label: PySide2.QtWidgets.QWidget, field: PySide2.QtWidgets.QWidget) -> None
insertRow(self, row: int, labelText: str, field: PySide2.QtWidgets.QLayout) -> None
insertRow(self, row: int, labelText: str, field: PySide2.QtWidgets.QWidget) -> None
insertRow(self, row: int, layout: PySide2.QtWidgets.QLayout) -> None
insertRow(self, row: int, widget: PySide2.QtWidgets.QWidget) -> None
Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#insertRow
invalidate
invalidate() -> None
X.invalidate()
Supplemental documentation: Qt 5 reference:
[override virtual] void QFormLayout::invalidate()
Reimplements: QLayout::invalidate().
Upstream PySide2 reference signatures (binding differences may apply):
invalidate(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#invalidate
itemAt
itemAt(index: Any) -> Any
X.itemAt(index) -> PythonQt.QtGui.QLayoutItem
Supplemental documentation: Qt 5 reference:
QLayoutItem *QFormLayout::itemAt(int row, QFormLayout::ItemRole role) const
Returns the layout item in the given row with the specified role (column). Returns
nullptr if there is no such item.
See also QLayout::itemAt() and setItem().
[override virtual] QLayoutItem *QFormLayout::itemAt(int index) const
Reimplements: QLayout::itemAt(int index) const.
Upstream PySide2 reference signatures (binding differences may apply):
itemAt(self, index: int) -> PySide2.QtWidgets.QLayoutItem
itemAt(self, row: int, role: PySide2.QtWidgets.QFormLayout.ItemRole) -> PySide2.QtWidgets.QLayoutItem
Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#itemAt
labelAlignment
instance-attribute
labelAlignment: Any
Qt 5 reference:
labelAlignment : Qt::Alignment
This property holds the horizontal alignment of the labels
The default value depends on the widget or application style. For QCommonStyle derived styles, except for QPlastiqueStyle, the default is Qt::AlignLeft; for the other styles, the default is Qt::AlignRight.
Access functions:
| Qt::Alignment | labelAlignment() const |
|---|---|
| void | setLabelAlignment(Qt::Alignment alignment) |
See also formAlignment.
Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#labelAlignment
labelForField
labelForField(field: Any) -> Any
X.labelForField(field) -> PythonQt.QtGui.QWidget
Supplemental documentation: Qt 5 reference:
QWidget *QFormLayout::labelForField(QWidget *field) const
Returns the label associated with the given field.
See also itemAt().
QWidget *QFormLayout::labelForField(QLayout *field) const
This is an overloaded function.
Upstream PySide2 reference signatures (binding differences may apply):
labelForField(self, field: PySide2.QtWidgets.QLayout) -> PySide2.QtWidgets.QWidget
labelForField(self, field: PySide2.QtWidgets.QWidget) -> PySide2.QtWidgets.QWidget
Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#labelForField
maximumSize
maximumSize() -> Any
X.maximumSize() -> PythonQt.QtCore.QSize
minimumHeightForWidth
minimumHeightForWidth(arg__1: Any) -> int
X.minimumHeightForWidth(arg__1) -> int
minimumSize
minimumSize() -> Any
X.minimumSize() -> PythonQt.QtCore.QSize
Supplemental documentation: Qt 5 reference:
[override virtual] QSize QFormLayout::minimumSize() const
Reimplements: QLayout::minimumSize() const.
Upstream PySide2 reference signatures (binding differences may apply):
minimumSize(self) -> PySide2.QtCore.QSize
Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#minimumSize
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QFormLayout.objectNameChanged; argument details are not documented.
rowCount
rowCount() -> int
X.rowCount() -> int
Supplemental documentation: Qt 5 reference:
int QFormLayout::rowCount() const
Returns the number of rows in the form.
See also QLayout::count().
Upstream PySide2 reference signatures (binding differences may apply):
rowCount(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#rowCount
rowWrapPolicy
instance-attribute
rowWrapPolicy: Any
Qt 5 reference:
rowWrapPolicy : RowWrapPolicy
This property holds the way in which the form's rows wrap
The default value depends on the widget or application style. For Qt Extended styles, the default is WrapLongRows; for the other styles, the default is DontWrapRows.
If you want to display each label above its associated field (instead of next to it), set this property to WrapAllRows.
Access functions:
| QFormLayout::RowWrapPolicy | rowWrapPolicy() const |
|---|---|
| void | setRowWrapPolicy(QFormLayout::RowWrapPolicy policy) |
See also fieldGrowthPolicy.
Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#rowWrapPolicy
setFieldGrowthPolicy
setFieldGrowthPolicy(policy: Any) -> None
X.setFieldGrowthPolicy(policy)
Upstream PySide2 reference signatures (binding differences may apply):
setFieldGrowthPolicy(self, policy: PySide2.QtWidgets.QFormLayout.FieldGrowthPolicy) -> None
Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#setFieldGrowthPolicy
setFormAlignment
setFormAlignment(alignment: Any) -> None
X.setFormAlignment(alignment)
Upstream PySide2 reference signatures (binding differences may apply):
setFormAlignment(self, alignment: PySide2.QtCore.Qt.Alignment) -> None
Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#setFormAlignment
setGeometry
setGeometry(rect: Any) -> None
X.setGeometry(rect)
Supplemental documentation: Qt 5 reference:
[override virtual] void QFormLayout::setGeometry(const QRect \&rect)
Reimplements: QLayout::setGeometry(const QRect \&r).
Upstream PySide2 reference signatures (binding differences may apply):
setGeometry(self, rect: PySide2.QtCore.QRect) -> None
Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#setGeometry