Hello.

I would like to change the opacity of a shape in a QgraphicsView by increasing the value in a variable white a horizontal slider but I can not do it. I tried with this code but it does not matter.

Qt Code:
  1. qreal opacity = 0.0;
  2. shape->setOpacity(opacity);
To copy to clipboard, switch view to plain text mode 

Thank you.