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

Find and replace certain strings in Rich Text Documents (odt, doc, docx, etc)



  • Hey, I'm making a Find And Replace program and so far it's been going good, the program works fully with *.txt files. I would like to add support for Rich Text Documents. What classes and methods can I use to search for certain strings in the document and then replace them?

    Thank you for your help everyone!



  • For the types mentioned in the title (odt = Open Office, doc/docx = MS Word), there is nothing built into Qt. You will have to use external libraries that parse that file formats for you (or write them yourself).


Log in to reply