Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

void QTextEdit::clear (  )  [slot, inherited]

Deletes all the text in the text edit.

Note that the undo/redo history is cleared by this function.

See also:
cut() setPlainText() setHtml()

Definition at line 1008 of file qtextedit.cpp.

Referenced by AddressBook::addContact(), QTextEdit::keyPressEvent(), MainWindow::newFile(), MainWindow::newLetter(), AddressBook::previous(), AddressBook::submitContact(), QTextEdit::timerEvent(), and AddressBook::updateInterface().

{
    Q_D(QTextEdit);
    // clears and sets empty content
    d->control->clear();
}


Generated by  Doxygen 1.6.0   Back to index