Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The qtextedit command creates a QTextEdit object. This is a multiline text editor in which the user may edit text interactively or programmatically. To set the contents of the editor use the qsettext command. To append text use qappend. To retrieve the text use qtext. The editor contents may be cleared using qclear.

Arguments

None

Examples

Ex.1: QTextEdit

...

Example QTextEdit shows a QTextEdit with text added using the qsettext and qappend commands.

Ex.2: Editor with clear button

...

Example Editor with clear button illustrates use of the qclear command. Pressing the Clear button will clear the textual contents of the editor.