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

List:       kde-devel
Subject:    Re: QWidget in QPixmap
From:       Waldo Bastian <bastian () kde ! org>
Date:       2004-10-23 14:51:58
Message-ID: 200410231651.58686.bastian () kde ! org
[Download RAW message or body]

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.

Cheers,
Waldo
-- 
bastian@kde.org   |   SUSE LINUX 9.2: Order now!   |   bastian@suse.com
  http://www.suse.de/us/private/products/suse_linux/preview/index.html
 
>> 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