Results 1 to 2 of 2

Thread: Drawing Rich Formatted Text with QPainter

  1. #1
    Join Date
    Jul 2007
    Location
    NW Florida
    Posts
    16
    Thanks
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question Drawing Rich Formatted Text with QPainter

    We have a report that was custom designed with QPainter and am able to add images and draw lines and draw simple plain text, but if i wanted to draw text that was stored in HTML from a QTextEdit, or any other widget that has the ability to display rich text, how would I go about rendering that with the QPainter.

    (FYI this is being printed directly to PDF by setting the QPainter's device to a QPrinter)

    Thanks in advance to anyone that might be able to point me in the right direction.


  2. #2
    Join Date
    Jul 2007
    Location
    NW Florida
    Posts
    16
    Thanks
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Drawing Rich Formatted Text with QPainter

    nevermind i found a similar post.....thanks though

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 10:49
  2. Replies: 2
    Last Post: 23rd July 2012, 09:42
  3. Problems with QString
    By cyberboy in forum Qt Programming
    Replies: 2
    Last Post: 13th October 2008, 09:18
  4. Rich text in QGraphicsTextItem
    By maverick_pol in forum Qt Programming
    Replies: 3
    Last Post: 29th September 2008, 21:08
  5. Rich text with QPainter?
    By sarefo in forum Qt Programming
    Replies: 3
    Last Post: 7th April 2008, 15:40

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.