开发者

Populate a QTextDocument from a .odt file

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 QTextD开发者_运维问答ocumentWriter for writing the contents of the QTextDocument to a file, but I can't seem to find anything to read that back into the QTextDocument, which obviously makes saving it sort of useless in the first place.

So the question is, how do I load an .odt document into a QTextDocument?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜