Results 1 to 7 of 7

Thread: Parts of rendered QGraphicsTextItem text is destroyed by other scene items

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Feb 2008
    Posts
    491
    Thanks
    12
    Thanked 142 Times in 135 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: Parts of rendered QGraphicsTextItem text is destroyed by other scene items

    Not sure, but it looks like some artifact left over from the translate. Try this instead:
    Qt Code:
    1. // Draw text content
    2. //painter->translate(QPointF(MARGIN, MARGIN));
    3. document()->setDocumentMargins(MARGIN);
    4. QGraphicsTextItem::paint(painter, option, widget);
    To copy to clipboard, switch view to plain text mode 
    Last edited by norobro; 10th May 2012 at 22:56.

  2. The following user says thank you to norobro for this useful post:

    ghb (11th May 2012)

Similar Threads

  1. Text rendered as squares
    By SeppeVanNolle in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 9th November 2011, 15:17
  2. Saving a FULLY rendered QWidget on a graphics scene
    By technoViking in forum Qt Programming
    Replies: 7
    Last Post: 25th October 2010, 22:47
  3. add items into scene
    By Noxxik in forum Qt Programming
    Replies: 0
    Last Post: 9th March 2009, 16:32
  4. Replies: 2
    Last Post: 24th January 2009, 18:30
  5. Can't move Items in the scene
    By maverick_pol in forum Qt Programming
    Replies: 2
    Last Post: 16th May 2008, 09: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
  •  
Qt is a trademark of The Qt Company.