Skip to content

QtWidgets.createQCheckBox()

Description

Creates a checkbox (QCheckBox) with text.

Syntax

JS
QtWidgets.createQCheckBox(text: String, parent: widget = null) -> QCheckBox

Parameters

Parameter Type Default Value Mandatory Description
text String ✅ Да Text next to the checkbox.
parent widget null ❌ Нет Parent widget, to which the created QCheckBox belongs. If not specified, the widget is created without a parent.

Return value

Type Description
QCheckBox New QCheckBox object.

Example

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

See also

Last update: 14 August 2025, 18:47