Qt 6.11 is out! See what's new in the release
blog
Setting opacity for a QGraphicsPixmapItem
General and Desktop
2
Posts
1
Posters
2.2k
Views
1
Watching
-
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.