Results 1 to 1 of 1

Thread: Why doesn't QGraphicsTextItem respect QTextDocument height?

  1. #1
    Join Date
    Feb 2009
    Location
    Leeds, England
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Wink Why doesn't QGraphicsTextItem respect QTextDocument height?

    If you set a QTextDocument on a QGraphicsTextItem and then setTextWidth() and setPageSize() on the QTextDocument, the QGraphicsTextItem clips the visible text when there are more than one pages in the document.

    The amount of clipping appears to be equal to the amount of padding inserted by the QTextDocument to make up the page length. As more pages are added the last line(s) of text gradually disappear.

    Does anyone know why this happens and how to overcome this? I've been struggling for weeks, on and off, to find a solution.

    Thanks in advance for any help.

    DC
    Last edited by zdvdcprz; 13th February 2009 at 17:17.

Similar Threads

  1. QTextDocument and line height
    By vooft in forum Qt Programming
    Replies: 0
    Last Post: 25th November 2008, 16:47

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.