JonnyJP
10th February 2012, 14:16
Hi,
I've got a vertical QScrollArea which I add custom widgets to which sits on a semi transparent QFrame and the user can scroll this up and down. If there are lots of widgets in the scroll area they obviously don't get rendered outside the scroll area's region but this causes a 'hard' cut-off and I'd like the widgets to fade in as the use scrolls up and down.
Is there any way to do this using an alpha mask? I've tried using stylesheets but that just paints the background of the QScrollArea and not the widgets themselves.
Any ideas?
I suppose this is similar to the end credits of a film where instead of the credits disappearing off the top of the screen they fade out with ever decreasing opacity.
I've got a vertical QScrollArea which I add custom widgets to which sits on a semi transparent QFrame and the user can scroll this up and down. If there are lots of widgets in the scroll area they obviously don't get rendered outside the scroll area's region but this causes a 'hard' cut-off and I'd like the widgets to fade in as the use scrolls up and down.
Is there any way to do this using an alpha mask? I've tried using stylesheets but that just paints the background of the QScrollArea and not the widgets themselves.
Any ideas?
I suppose this is similar to the end credits of a film where instead of the credits disappearing off the top of the screen they fade out with ever decreasing opacity.