Skip to content

PythonQt.QtGui.QFormLayout · declarations 002

Back to PythonQt.QtGui.QFormLayout

setHorizontalSpacing

setHorizontalSpacing(spacing: int) -> None

X.setHorizontalSpacing(spacing)

Upstream PySide2 reference signatures (binding differences may apply):

setHorizontalSpacing(self, spacing: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#setHorizontalSpacing

setItem

setItem(row: int, role: Any, item: Any) -> None

X.setItem(row, role, item)

Supplemental documentation: Qt 5 reference:

void QFormLayout::setItem(int row, QFormLayout::ItemRole role, QLayoutItem *item)

Sets the item in the given row for the given role to item, extending the layout with empty rows if necessary.

If the cell is already occupied, the item is not inserted and an error message is sent to the console. The item spans both columns.

Warning: Do not use this function to add child layouts or child widget items. Use setLayout() or setWidget() instead.

See also setLayout().

Upstream PySide2 reference signatures (binding differences may apply):

setItem(self, row: int, role: PySide2.QtWidgets.QFormLayout.ItemRole, item: PySide2.QtWidgets.QLayoutItem) -> None

Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#setItem

setLabelAlignment

setLabelAlignment(alignment: Any) -> None

X.setLabelAlignment(alignment)

Upstream PySide2 reference signatures (binding differences may apply):

setLabelAlignment(self, alignment: PySide2.QtCore.Qt.Alignment) -> None

Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#setLabelAlignment

setLayout

setLayout(row: int, role: Any, layout: Any) -> None

X.setLayout(row, role, layout)

Supplemental documentation: Qt 5 reference:

void QFormLayout::setLayout(int row, QFormLayout::ItemRole role, QLayout *layout)

Sets the sub-layout in the given row for the given role to layout, extending the form layout with empty rows if necessary.

If the cell is already occupied, the layout is not inserted and an error message is sent to the console.

Note: For most applications, addRow() or insertRow() should be used instead of setLayout().

See also setWidget().

Upstream PySide2 reference signatures (binding differences may apply):

setLayout(self, row: int, role: PySide2.QtWidgets.QFormLayout.ItemRole, layout: PySide2.QtWidgets.QLayout) -> None

Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#setLayout

setRowWrapPolicy

setRowWrapPolicy(policy: Any) -> None

X.setRowWrapPolicy(policy)

Upstream PySide2 reference signatures (binding differences may apply):

setRowWrapPolicy(self, policy: PySide2.QtWidgets.QFormLayout.RowWrapPolicy) -> None

Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#setRowWrapPolicy

setSpacing

setSpacing(arg__1: int) -> None

X.setSpacing(arg__1)

Supplemental documentation: Qt 5 reference:

void QFormLayout::setSpacing(int spacing)

This function sets both the vertical and horizontal spacing to spacing.

See also spacing(), setVerticalSpacing(), and setHorizontalSpacing().

Upstream PySide2 reference signatures (binding differences may apply):

setSpacing(self, arg__1: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#setSpacing

setVerticalSpacing

setVerticalSpacing(spacing: int) -> None

X.setVerticalSpacing(spacing)

Upstream PySide2 reference signatures (binding differences may apply):

setVerticalSpacing(self, spacing: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#setVerticalSpacing

setWidget

setWidget(row: int, role: Any, widget: Any) -> None

X.setWidget(row, role, widget)

Supplemental documentation: Qt 5 reference:

void QFormLayout::setWidget(int row, QFormLayout::ItemRole role, QWidget *widget)

Sets the widget in the given row for the given role to widget, extending the layout with empty rows if necessary.

If the cell is already occupied, the widget is not inserted and an error message is sent to the console.

Note: For most applications, addRow() or insertRow() should be used instead of setWidget().

See also setLayout().

Upstream PySide2 reference signatures (binding differences may apply):

setWidget(self, row: int, role: PySide2.QtWidgets.QFormLayout.ItemRole, widget: PySide2.QtWidgets.QWidget) -> None

Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#setWidget

sizeHint

sizeHint() -> Any

X.sizeHint() -> PythonQt.QtCore.QSize

Supplemental documentation: Qt 5 reference:

[override virtual] QSize QFormLayout::sizeHint() const

Reimplements: QLayoutItem::sizeHint() const.

Upstream PySide2 reference signatures (binding differences may apply):

sizeHint(self) -> PySide2.QtCore.QSize

Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#sizeHint

spacing instance-attribute

spacing: int

Qt 5 reference:

int QFormLayout::spacing() const

If the vertical spacing is equal to the horizontal spacing, this function returns that value; otherwise it returns -1.

See also setSpacing(), verticalSpacing(), and horizontalSpacing().

Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#spacing

takeAt

takeAt(index: int) -> Any

X.takeAt(index) -> PythonQt.QtGui.QLayoutItem

Supplemental documentation: Qt 5 reference:

[override virtual] QLayoutItem *QFormLayout::takeAt(int index)

Reimplements: QLayout::takeAt(int index).

Upstream PySide2 reference signatures (binding differences may apply):

takeAt(self, index: int) -> PySide2.QtWidgets.QLayoutItem

Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#takeAt

verticalSpacing instance-attribute

verticalSpacing: int

Qt 5 reference:

verticalSpacing : int

This property holds the spacing between widgets that are laid out vertically

By default, if no value is explicitly set, the layout's vertical spacing is inherited from the parent layout, or from the style settings for the parent widget.

Access functions:

int verticalSpacing() const
void setVerticalSpacing(int spacing)

See also horizontalSpacing, QStyle::pixelMetric(), and PM_LayoutHorizontalSpacing.

Source: https://doc.qt.io/archives/qt-5.15/qformlayout.html#verticalSpacing