Results 1 to 2 of 2

Thread: Loading files with text and images in TextEdit

  1. #1
    Join Date
    Jan 2011
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question Loading files with text and images in TextEdit

    Hi friends ,
    i used QTextDocumentWriter to write the contents of TextEdit widget (images and text ) to an ODF file . And i want to read the same and display and load it inside a TextEdit to do editing and saving again ..
    Please give some ideas ..

    Loading HTML and TEXT files does not seem to be a problem ..

    PLease guide me .

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Loading files with text and images in TextEdit

    As far as I know you only can save the content of a text edit to odf. Not the other way around. Of course you can write your own converter, but there is no Qt out of the box odf to text edit.


    EDIT: And for how to do it: ODF is an archive of XML files, so open the content.xml (I guess it is called so) and parse it. Then insert the content to the edit like you will.

  3. The following user says thank you to Lykurg for this useful post:

    dshan (11th January 2011)

Similar Threads

  1. Loading images from resource files in webkit
    By redserpent7 in forum Qt Programming
    Replies: 1
    Last Post: 21st January 2015, 14:01
  2. Loading images from url in qt 4
    By shalini in forum Newbie
    Replies: 4
    Last Post: 15th September 2011, 17:21
  3. Slow loading images
    By abbapatris in forum Qt Programming
    Replies: 10
    Last Post: 5th March 2008, 16:52
  4. Loading images in html in a QTextBrowser
    By BasicPoke in forum Newbie
    Replies: 1
    Last Post: 6th June 2007, 22:51
  5. Loading images in QTextBrowser
    By nisha0609 in forum Qt Programming
    Replies: 1
    Last Post: 3rd January 2007, 10:44

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.