Results 1 to 3 of 3

Thread: QTextEdit save as RichText width Images

  1. #1
    Join Date
    May 2010
    Posts
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default QTextEdit save as RichText width Images

    Hello together,
    I have a QTextEdit where I can put in images via copy/paste.
    Now I like to save the data in the QTextEdit width the images (it would be nice as RichText).
    Does anybody know how to do that. With toPlainText der is just a ? mark and with toHtml there is <src='name'>. It must be possible to save that otherwise it doesn't make sense to add Images.

    Greetings and thanks a lot for your help.
    kea_

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: QTextEdit save as RichText width Images

    Print as PDF

  3. #3
    Join Date
    May 2010
    Posts
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTextEdit save as RichText width Images

    Thank you for your answer.
    The saving as pdf works. And I have seen the saving as odf.
    I like to write the data into a database. But I don't like to generate a file, read it and write it to database. Is there an other possibility?

    Thank you very much.
    kea_

Similar Threads

  1. QTextBrowser/QTextEdit html block width issue
    By lexar in forum Qt Programming
    Replies: 2
    Last Post: 26th January 2010, 13:47
  2. Save images directly into mysql with qtcreator
    By Lycus HackerEmo in forum Qt Programming
    Replies: 1
    Last Post: 17th January 2010, 09:29
  3. Replies: 4
    Last Post: 27th July 2009, 16:45
  4. Open/Save dialog with images preview
    By mchara in forum Qt Programming
    Replies: 8
    Last Post: 5th November 2007, 08:25
  5. Save images to database
    By jnk5y in forum Qt Programming
    Replies: 4
    Last Post: 8th May 2006, 20:56

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.