QTreeWidget - Drag and drop - highlight tree widget item with focus
I have a QTreeWidget subclass with drop enabled. As I drag into the tree widget, I want the QTreeWidgetItem to highlight indicating the tree node where the drop will occur.
I am receiving the events dragEnterEvent, dragMoveEvent, and dropEvent.
How do I get the highlight behavior as the drag is occurring?
Thank you in advance
Re: QTreeWidget - Drag and drop - highlight tree widget item with focus
May be u will need a delegate...
if mouse is over a item, set some user defined role for this item.
Then in the paint function of the delegate, use this role to paint the background :)