Hi,
i'm developing a level editor for a "game". And I have a QGraphicsScene with QGraphicsPolygonItem inherit's classes. But I can't get the hoverEnterEvent to work.
Anyone can help me?
Hi,
i'm developing a level editor for a "game". And I have a QGraphicsScene with QGraphicsPolygonItem inherit's classes. But I can't get the hoverEnterEvent to work.
Anyone can help me?
Have you call
Qt Code:
setAcceptsHoverEvents(true);To copy to clipboard, switch view to plain text mode
on the QGraphicsPolygonItem ?
Yes, I did
I have found the problem:
I had insert the squares into a QGraphicsItemGroup and this makes that the squares can't use their events... Strange
Thanks anyway
QGraphicsItemGroup has the handlesChildEvents property enabled; it eats all events delivered to any of its descendents. You use QGraphicsItemGroup if you need to treat a group of items as one.
Bitto / Andreas Aardal Hanssen - andreas dot aardal dot hanssen at nokia
Nokia Software Manager, Qt Development
Bookmarks