[PyQt] Fade effect a widget on top of another widget

David Boddie dboddie at trolltech.com
Tue Aug 18 17:10:27 BST 2009

On Tue Aug 18 16:47:42 BST 2009, Jason H wrote:

> The fader widget is limited.

Not only that, but the last time I built it against a current version of Qt
it didn't work any more, at least not in the way I expected. :-/

> What you really want to do is create a parent
> QWidget or QStackedWidget subclass and have it call render() on both
> widgets, then fade with one on top of the other with the one being faded to
> on the bottom (by decreasding the opacity of the top) until it is complete
> them move it to the current stack item.
> That is for a cross fade. You could always fade to empty then fade out.

I would probably do something like that for a cross fade. The fader widget
appears to do a different kind of fade.


More information about the PyQt mailing list