Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Find and replace certain strings in Rich Text Documents (odt, doc, docx, etc)
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wonopon12
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      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).

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved