<html><head><meta name="qrichtext" content="1" /></head><body style="font-size:9pt;font-family:Bitstream Vera Sans">
<p>On Monday 28 April 2008 23:17, Den Jean wrote:</p>
<p>> On Friday 25 April 2008 15:23:25 zeljko wrote:</p>
<p>> > Den, I need QPageSetupDialog to implement printing with qt lcl, also if U</p>
<p>> > have some spare time I'll need QProcess, QAbstractTextDocumentLayout</p>
<p>> > (this one is used to render html pages - so maybe it'll come into qt-lcl)</p>
<p>> > for my private</p>
<p>></p>
<p>> Linux done.</p>
<p></p>
<p></p>
<p>tnx, now I see that it have PaintContext class inside, and only that is needed, seem that I'll have to write QLCLAbstractTextDocument ;)</p>
<p>This is code which can render HTML page inside QTableWidget:</p>
<p></p>
<p>painter->save();</p>
<p>QTextDocument doc;</p>
<p>doc.setHtml( index.data().toString() );</p>
<p>QAbstractTextDocumentLayout::PaintContext context;</p>
<p>/* PaintContext is here */</p>
<p>doc.setPageSize( option.rect.size());</p>
<p>painter->translate(option.rect.x(), option.rect.y());</p>
<p>doc.documentLayout()->draw(painter, context);</p>
<p>painter->restore(); </p>
<p></p>
<p>Anyway tnx.</p>
<p></p>
<p>z.</p>
</body></html>