Results 1 to 2 of 2

Thread: From QPrinter to QTextDocument

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2006
    Posts
    77
    Thanks
    14
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default From QPrinter to QTextDocument

    Hi!

    Is it possible to get the content that was painted on QPrinter into a QTextDocument
    and how?

    Thank you for your help.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: From QPrinter to QTextDocument

    You might try to paint something on QPixmap, add that pixmap to the document's resources using QTextDocument::addResource() and then use <img> tag to display it.

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

    kemp (27th November 2006)

Similar Threads

  1. QTextDocument resources
    By xgoan in forum Qt Programming
    Replies: 1
    Last Post: 19th November 2006, 10:18
  2. How to use QPrinter without QPrintDialog?
    By pascal456 in forum Qt Programming
    Replies: 2
    Last Post: 15th November 2006, 19:57
  3. QPrinter on Solaris
    By ToddAtWSU in forum Qt Programming
    Replies: 4
    Last Post: 24th October 2006, 20:29
  4. Replies: 0
    Last Post: 28th June 2006, 20:49
  5. How to convert QTextDocument to PNG file?
    By Gonzalez in forum Qt Programming
    Replies: 1
    Last Post: 2nd February 2006, 14:46

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
  •  
Qt is a trademark of The Qt Company.