Have you enabled mouse tracking on the viewport and also installed the event filter on the viewport?
Qt Code:
treeWidget->viewport()->setMouseTracking(true); treeWidget->viewport()->installEventFilter(this);To copy to clipboard, switch view to plain text mode
Edit: is the tree massive, containing huge amount of items in a complex hierarchy?![]()





Reply With Quote
Bookmarks