I have more QGraphicsItems on top of each other. How can I make hover event available for all items? Only the last added item (the one on the top) accepts hover events.
Thanks
I have more QGraphicsItems on top of each other. How can I make hover event available for all items? Only the last added item (the one on the top) accepts hover events.
Thanks
You can ignore the event in the item. It will then propagate to the item below.
I done this, but it's not working. Only top item receives hover event.
Any advice where to look for an error?
Qt Code:
{ drawRuler = true; update(); event->ignore(); }To copy to clipboard, switch view to plain text mode
Probably an item will only receive hoverMoveEvent when it has already accepted hoverEnterEvent. You need to propagate all hover events.
I already did that. No success..
In documentation it says that ignore has no effect. That's probably the reason why is not working..
http://doc.qt.nokia.com/4.7-snapshot...overEnterEventCalling QEvent::ignore() or QEvent::accept() on event has no effect.
Bookmarks