This use internally now a QTextDocument and a new C++ class to manipulate the document with QTextCursor.