Hello,
i have a QPushButton . To enable shadow for this, i have done the following:

QGraphicsDropShadowEffect* effect = new QGraphicsDropShadowEffect();

button->setGraphicsEffect(effect);

Here 'button' is my custom control derived from QPushButton.

It works.

Now I also need to add opacity to the shadow part only.

How to achieve this?

Any help would be useful.