QStyledItemDelegate - mouse hover?
Dariusz last edited by
Like topic says, how can I get mouse Hover event/mouse position to check if I want to change cursor/highlight stuff etc etc?
First check what mouse events comes in
It says it gets mouse events but not which.
Dariusz last edited by Dariusz
@mrjj I'm not getting any move/hover events in that function.
I don't edit anything yet to get it I think. I'm drawing 3 rects in paint() function and now I'd like to highlight each rect when mouse hover over it.
EDIT. it looks like I had to view.setMouseTracking(True) to get the event in delegate o.O
But it does not fire on mouse enter/leave action sigh. :D