Skip to content

(QtWidgets.createQGridLayout())

Description

Creates a grid layout.

Syntax

JS
QtWidgets.createQGridLayout(parent: widget = null) -> QGridLayout

Parameters

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

Return value

Type Description
QGridLayout New QGridLayout object, which can be used for organizing forms in the application interface.

Example

JS
let result = QtWidgets.createQGridLayout()
console.info(result)

See Also

Last update: 14 August 2025, 18:47