Description
Creates a single-line text input field.
Syntax
JSQtWidgets.createQLineEdit(text: String, parent: widget = null) -> QLineEdit
Parameters
Parameter |
Type |
Default Value |
Mandatory |
Description |
text |
!String |
— |
Da |
Initial value. |
parent |
widget |
null |
❌ Нет |
Parent widget to which the created QLineEdit belongs. If not specified, the widget is created without a parent. |
Return value
Type |
Description |
!String |
New QLineEdit object. |
Example
JS |
---|
| let result = QtWidgets.createQLineEdit()
console.info(result)
|
Last update: 14 August 2025, 18:47