Description
Creates a grid layout.
Syntax
JSQtWidgets.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)
|
Last update: 14 August 2025, 18:47