* Adds base template for new docs site * Adds Apis to docs * add some css from rn * Fix right side sidebar functionality * Basic docs * adds old docs * Cleans up unnecessary files * Chane links * Adds docusaurus v2 * Styling fixes * adds wip and new assets * adds code image * Add FAQ link * Adds analytics * adds cname * cleanup blogs
1.6 KiB
| sidebar_label | title |
|---|---|
| QLineEdit | QLineEdit |
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
Example
const { QLineEdit } = require("@nodegui/nodegui");
const lineEdit = new QLineEdit();
new QLineEdit(parent?)
parentNodeWidget (optional). Any widget inheriting from NodeWidget can be passed as a parent. This will make this widget, the child of the parent widget.
Static Methods
QLineEdit can access all the static methods defined in NodeWidget
Instance Properties
QLineEdit can access all the instance properties defined in NodeWidget. Additionally it also has the following instance properties:
lineEdit.placeholderText
The placeholder text set on the lineEdit.
Instance Methods
QLineEdit can access all the instance methods defined in NodeWidget. Additionally it also has the following instance methods:
lineEdit.setText(text)
Sets the given text to the lineEdit.
textstring
lineEdit.setPlaceholderText(text)
Sets the given text to the lineEdit's placeholder.
textstring
lineEdit.text()
Returns the currently set text from native lineEdit widget.
lineEdit.setReadOnly(isReadOnly)
Sets the lineEdit to be read only. lineEdit property holds whether the line edit is read only.
isReadOnlyboolean
lineEdit.clear()
Clears the lineEdit.