Results 1 to 2 of 2

Thread: Serialization of QTextEdit

  1. #1
    Join Date
    Mar 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Question Serialization of QTextEdit

    How do you serialize the content of QTextEdit (say there is a picture, formated text, bulleted and numbered content and so on)?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Serialization of QTextEdit

    You can retrieve and save the HTML and referenced images. You could walk through the text blocks that form the document and do something with those directly (images are referenced indirectly by the name attribute of a QTextImageFormat object). AFAICT there is no one line serialisation.

Similar Threads

  1. QDataStream and serialization
    By pdoria in forum Qt Programming
    Replies: 5
    Last Post: 11th November 2009, 09:42
  2. XML Serialization of Qt Objects
    By sasi in forum Qt Programming
    Replies: 1
    Last Post: 29th June 2009, 19:25
  3. Need help with serialization of QMaps
    By fg_psycho in forum Qt Programming
    Replies: 1
    Last Post: 5th May 2009, 17:16
  4. serialization & data integrity
    By darksaga in forum Qt Programming
    Replies: 2
    Last Post: 28th August 2007, 13:04
  5. Serialization
    By donmorr in forum Qt Programming
    Replies: 4
    Last Post: 16th November 2006, 13:51

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.