Skip to content

QtWidgets.createQFormLayout()

Description

A container layout designed for comfortable placement of form fields such as labels (labels) and input fields, in the shape of two columns: left – label description, right – control element.

Syntax

JS
QtWidgets.createQFormLayout(parent: widget = null) -> QFormLayout

Parameters

Parameter Type Default Value Mandatory Description
parent widget null ❌ Нет Parent widget to which the created QFormLayout belongs. If not specified, the layout is created without a parent.

Return value

Type Description
QFormLayout New QFormLayout object that can be used to organize forms in the application interface.

Example

JS
let w = QtWidgets.createQFormLayout()
console.info(w)

See Also

Last update: 14 August 2025, 18:47