I am writing a rich text editor using C++ and Qt. For now, I would like it to support (at least) the .odt format.
I found QTextDocumentWriter for writing the contents of
Qt does not currently support the ODT format. Okular has code that does parses ODT to a QTextDocument. Beware: Okular source code is released under GPL license.