Now , I put a QGraphicsPixmapItem into a QGraphicsScene , When mouse enter the item ,I want the item highlighted , but now I can,t receive the mouseEnter event, so is mouseLeave???
Now , I put a QGraphicsPixmapItem into a QGraphicsScene , When mouse enter the item ,I want the item highlighted , but now I can,t receive the mouseEnter event, so is mouseLeave???
You can receive hoverEnterEvent(), hoverMoveEvent(), and hoverLeaveEvent(), but remember to execute setAcceptHoverEvents ( true ) on your item.
Bookmarks