Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 7

Qt-interest Archive, March 2007
Qt3 QSimpleRichText printing is cutting off text lines


Message 1 in thread

Hi,

I''m using the printing routine from the helpviewer example to print
some HTML documents (several pages long, text and images), with the
QSimpleRichText::draw() and the "moving rectangle" approach to print
multiple pages (Qt 3.x).

The problem is that sometimes text lines are cut off at the bottom/top
of page (same goes for images, they're cut) so the rectangle should be
adjusted to take into account the presence of text or images at the
rectangle's borders. I tried using inText() method, but it looks like
it only work one pixel (Qpoint) at a time.

Does anyone solved this page layout problem for HTML printing before?
Any suggestions?

Thnk you very much in advance.

Pablo Rogina

--
 [ signature omitted ]