Description
Creates a checkbox (QCheckBox) with text.
Syntax
JSQtWidgets.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)
|
Last update: 14 August 2025, 18:47