From kde-devel Wed Oct 27 11:02:04 2004 From: Laur Ivan Date: Wed, 27 Oct 2004 11:02:04 +0000 To: kde-devel Subject: Re: QWidget in QPixmap Message-Id: <200410271202.04607.laur.ivan () corvil ! com> X-MARC-Message: https://marc.info/?l=kde-devel&m=109887498001315 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 <<