[Interest] Re using graphics effects

Graham Labdon Graham.Labdon at avalonsciences.com
Tue Nov 26 11:06:50 CET 2013

I have applied a graphics effect to a widget -
        QGraphicsOpacityEffect* opacityEffect = new QGraphicsOpacityEffect(this); // make sure to create using new, since effect has to be alive as long as the target widget is using it.
        opacityEffect->setOpacity(0.0); // initially widget should be invisible

Now I want the same effect on another widget so I did this -

This has the effect of making the second widget transparent but makes the first visible.
Why am I unable to share the graphics effect object?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131126/66ba848f/attachment.html>

More information about the Interest mailing list