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

List:       kde-devel
Subject:    Re: QWidget in QPixmap
From:       Laur Ivan <laur.ivan () corvil ! com>
Date:       2004-10-27 11:02:04
Message-ID: 200410271202.04607.laur.ivan () corvil ! com
[Download RAW message or body]

On Saturday 23 October 2004 15:51, Waldo Bastian wrote:
> On Friday 22 October 2004 17:41, Laur Ivan wrote:
> > Hi all,
> >
> > Is there any easy way to make a widget to paint itself in a pixmap? I'm
> > aware of QPixmap::grabWidget(...), but I'm not sure it's the right thing
> > for a progressbar.
>
> Sort of. You can use a QPainter that operates on a QPixmap and then call
> the paint methods of the widget with your QPainter.
Thanks a mill :) I'll give it a go this evening. It's way nicer than what I 
was thinking of (tapping into the style primitives) :)

Cheers,

Laur
 
>> 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