void setCentralWidget(QWidget *widget)
Sets the given widget to be the main window's central widget.
\reentrant \inmodule QtGui
\reentrant \inmodule QtGui
The QTextEdit class provides a widget that is used to edit and display both plain and rich text.
QTextCursor textCursor() const
Returns a copy of the QTextCursor that represents the currently visible cursor.
void setDocument(QTextDocument *document)