QTextCursor textCursor() const
Returns a reference to the text cursor.
 
A widget for editing rich text documents, with support for user controlled formatting of text and ins...
 
void setTextCursor(const QTextCursor &cursor)
Sets the current text cursor.
 
QTextDocument * document()
Returns a reference to the QTextDocument shown in the widget.