Create and control editable text field.
This class is a JS wrapper around Qt's QLineEdit class
A QLineEdit provides ability to add and manipulate native editable text field widgets.
QLineEdit inherits from NodeWidget
const { QLineEdit } = require("@nodegui/nodegui");
const lineEdit = new QLineEdit();parentNodeWidget (optional). Any widget inheriting from NodeWidget can be passed as a parent. This will make this widget, the child of the parent widget.
QLineEdit can access all the static methods defined in NodeWidget
QLineEdit can access all the instance properties defined in NodeWidget. Additionally it also has the following instance properties:
The placeholder text set on the lineEdit.
QLineEdit can access all the instance methods defined in NodeWidget. Additionally it also has the following instance methods:
Sets the given text to the lineEdit.
textstring
Sets the given text to the lineEdit's placeholder.
textstring
Returns the currently set text from native lineEdit widget.
Sets the lineEdit to be read only. lineEdit property holds whether the line edit is read only.
isReadOnlyboolean
Clears the lineEdit.