[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    [kde-devel] Re: Printing rich text with KDE
From:       Matthias Ettrich <ettrich () trolltech ! com>
Date:       2002-06-05 7:57:06
[Download RAW message or body]

On Tuesday 04 June 2002 16:03, Simon Hausmann wrote:
> On Tue, Jun 04, 2002 at 03:06:05PM +0200, kde-devel-request@mail.kde.org 
wrote:
> > Is there a standard interface to print rich text in KDE?  I have found
> > all sorts of goodies for setting up the page, and for printing normal
> > text. If there is not does anyone have advice on the best way to do rich
> > text printing?  When I say rich text I mean the html generated by the Qt
> > rich text.  I am very ignorant in the area of printing as I still just
> > use a QPainter to "draw" things, I am just wondering if there is a better
> > way.
>
> I think the easiest way is to create a QSimpleRichText object and
> use use the draw() method to draw it into a QPainter initialized to a
> q/kprinter object.
>
> Simon

For an example on how to do this, look at the helpviewer example in Qt.

 Matthias



>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> >> unsubscribe <<

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic