I'm trying to change the transparency of this QGraphicsItem-inheriting shape.



Because of the way the drop shadow is drawn, this happens when I change the object's transparency...



I've thought about only drawing the parts of the shadow that will be seen, but I don't think that will work with these shapes:



I want the graphics item to be drawn and then have the opacity be changed on the resulting drawing, thus avoiding that you can see the full drop shadow through the shape itself. How can I change the QGraphicsItem's transparency as a whole?