Using a single `QGraphicsEffect` for multiple widgets
-
Hi,
As stated in the documentation of QWidget::setGraphicsEffect, the widget retrieves it if it was already applied and takes ownership of the effect.
It will apply it to all its children.
-
I'm looking to use a single
QGraphicsEffect, which I constructed, for multiple widgets.
If I set a single effect object to multiple widgets, only the last one that I set actually gets the effect. -
If they are separated, you use one for each widget.
-
Hmm I see, but then how do I solve this in a simple way?
QGraphicsEffects don't tend to have a copy constructor.