Setting opacity for a QGraphicsPixmapItem
-
I'm trying to lay down two QGraphicsPixmapItems on top of each other in a grahicsview(graphicsscene). For the top QGraphicsPixmapItem, I'm trying to set the opacity so that I can see the bottom QGraphicsPixmapItem. Nothing I do works in being able to see the bottom pixmap. pixmap.setOpactiy(0.25) has no effect. I've also tried setting the alpha channel for each pixel too. Any Suggestions?
The Top QGraphicsPixmapItem is created from a QImage. The QImage is generated by setting each pixel with a rgba color. I've tried tried several values for Alpha but with no effect.
-
I figured out the problem. I was not adding the items correctly to the scene.