
Originally Posted by
Gaspar
undo () method vanished in Qt4
Where did it go? Qt3 porting documentation to Qt4 recommends to use Qt3 compatibility libraries or port to Qt4. It does not say how to port it.
New QTextDocument class represents a rich text document, the content of a text edit. Undo/redo operations can be performed on the document:
textEdit->document()->undo();
textEdit->document()->undo();
To copy to clipboard, switch view to plain text mode

Originally Posted by
Gaspar
setting a single font for QTextEdit is problematic
You may use QWidget::setFont() to change the font of the whole widget:
textEdit->setFont(font);
textEdit->setFont(font);
To copy to clipboard, switch view to plain text mode
Bookmarks