Skip to content

Qt Widgets.createQWidget()

Description

The base widget is a container for other widgets.

Syntax

JS
QtWidgets.createQWidget(parent: widget = null) -> QWidget

Parameters

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

Return value

Type Description
QWidget A new QWidget object.

Example

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

See Also

Last update: 14 August 2025, 18:47