The QTextDocument class holds formatted text.| doc.qt.io
The QTextCursor class offers an API to access and modify QTextDocuments.| doc.qt.io