nodeguy/docs/api/QPlainTextEdit.md
2019-08-23 00:07:45 +05:30

1.4 KiB

Class: QPlainTextEdit

Used to edit and display plain text.

This class is a JS wrapper around Qt's QPlainTextEdit class

A QPlainTextEdit provides ability to add and manipulate native editable text field widgets.

QPlainTextEdit inherits from NodeWidget

Example

const { QPlainTextEdit } = require("@nodegui/nodegui");

const plainTextEdit = new QPlainTextEdit();

new QPlainTextEdit(parent?)

  • parent NodeWidget (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

QPlainTextEdit can access all the static methods defined in NodeWidget

Instance Properties

QPlainTextEdit can access all the instance properties defined in NodeWidget.

Instance Methods

QPlainTextEdit can access all the instance methods defined in NodeWidget.

plainTextEdit.setPlainText(text)

Sets the given text to the plainTextEdit.

  • text string

plainTextEdit.toPlainText()

Returns the text of the text edit as plain text.

plainTextEdit.clear()

Deletes all the text in the text edit.