You are animating windowOpacity of poBaseWidget instead of your MessageFrame instance. Only top-level windows can have their windowOpacity manipulated.
You are animating windowOpacity of poBaseWidget instead of your MessageFrame instance. Only top-level windows can have their windowOpacity manipulated.
Momergil (18th June 2014)
Oh, I remember reading that in the manual; I didn't noticed I was doing that in my code. Anyway, why is that so? And, well, if the method show by anda_skoa is valid only for top-level windows, I'll restate my first question to: is there a way to create such a "fade" effect that is not by stylesheet and that is valid for any widget I want to apply the effect regardless of being a top level widget or not?
May the Lord be with you. Always.
So you want the content of the window to fade, not the window itself?
Maybe usingQGraphicsOpacityEffect on the widget which you want to fade.
Cheers,
_
Momergil (18th June 2014)
Bookmarks