[Qt-interest] QPainter::setRedirected example?

Bart van Deenen bvandeenen at infologic.nl
Mon Dec 29 08:50:05 CET 2008


Hi all

is there an example that uses QPainter::setRedirected somewhere? 

I've tried in vain to make a basic working example, redirecting the
output of as QButton into a QPixmap, and then drawing the QPixmap into
my own QWidget. It just doesn't seem to work, and the QButton keeps
reacting to my clicks, indicating that its rendering is not redirected.

What I want to do is redirect a widget into a pixmap, so that I can
apply special effects when the widget changes its data (things like
crossfade and such).

Thanks for any hints

Bart van Deenen




More information about the Qt-interest-old mailing list