Skip to content

QtWidgets.createQLineEdit()

Description

Creates a single-line text input field.

Syntax

JS
QtWidgets.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)

See also

Last update: 14 August 2025, 18:47