Re: Selecting QGraphicsItems
I always use
Code:
if (option
->state
& QStyle::State_Selected) //...
in the paint method. Did that work for you?
Re: Selecting QGraphicsItems
I'll try it. I'm no longer at the machine where my code resides, so it'll have to wait 'til tomorrow.
I was saying
if (isSelected())
// use a certain color for the outline
else
// use some other color for the outline
Re: Selecting QGraphicsItems
OK, this seems to be working as expected. Not sure why the other approach using isSelected() didn't, but it's time to move on.
Thanks.