I read old topics about QTextDocument serialization: here and here. As I understood, once real method for serialization and deserializtion without additional code is saving and reading documents as html files. But, I think, this method not fast, because html string parsing is a hard and low time operation.
In other case, I can save document in binary format and deserialize them via QTextCursor methods calling in sequence, that faster then html parsing, I think.
Is exist code samples for QTextDocument binary serialization?