Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QTextEdit loses formatting in ODT



  • I am working on an app to create a document by reading data structures from an XML file. The document looks valid in a QTextEdit on screen. If I save the document to an ODT file it looses all of the table boundaries. If I save it as either PDF or HTML it keeps the formatting. I need to get the document into MS Word for final editing. Word will read the HTML where I can save it as RTF or DOC but that is an extra step. Is anything special required to save tables in the ODT file. I tried to "borrow" code from an app called focuswriter but it loses all formatting.


Log in to reply