Show ToolTip on Mouse Hover over QGraphics Item
I drew 256 "QGraphicsRectItem" on a QGraphicsView.
Each Item is representing a Storage LUN.
Now i want to show tooltip like LUN0,LUN1 on each item on mousehover event.
I want to know how to acheive this.
I am able to show tool tip like LUN0,LUN1 by using setToolTip method of
But still i want to know how to capture mouse hover events for a particular QGraphicsViewRectItem and do some actions regarding that.
You can e.g. create your own QGraphicsViewRectItem subclass and reimplement the mouseXXXEvent methods.
Hope it helps