How set opacity on QGraphicsItem

Posted by La Chamelle on Stack Overflow See other posts from Stack Overflow or by La Chamelle
Published on 2010-06-11T22:02:14Z Indexed on 2010/06/13 4:22 UTC
Read the original article Hit count: 301

Filed under:
|
|
|

Hello,

i have a inherited from QGraphicsScene and QGraphicsItem to create my own classes. I use Qt 4.6.

I want to set a specific opacity on each items of my scene. I use setOpacity : setOpacity method, but its not the result i hope. I want to have for example one item opaque and an other transparent (to see the desktop, or the other application).

But if i dont set the opacity of the QGraphicsView to 0.5, i have not the transparancy. And if the QGraphicsView is set to 0.5, the item is not real opaque.

What should i do ?

Thanks you.

© Stack Overflow or respective owner

Related posts about c++

Related posts about qt