Hi
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
        ui.buttonLabel_4->setGraphicsEffect(opacityEffect);

Now I want the same effect on another widget so I did this -
        ui.buttonLabel_5->setGraphicsEffect(opacityEffect);

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?

Thanks

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to