PDA

View Full Version : QGraphicsItem problem



zgulser
7th July 2010, 16:14
Hi everybody,

I have an interesting problem regarding the thread subject. I implemented paint method of graphics item so that to make the item orange when the mouse is over the item. But the problem is - whenever I make the mouse over the item, the item becomes orange for 3-4 seconds and then it becomes it's default color black. When I make the mouse over the item again it does the same thing..

It may be very application specific problem but I want to hear your opinions about this problem if you have any.

high_flyer
8th July 2010, 08:35
Please show relevant code.

matteo.boscolo
11th July 2010, 09:19
I had a similar problem,
but I solve it implementing the

shape
paint
boundingRect
in the QGraphicsItem

Regards
Matteo