Check the Puzzle example in Qt Demos.
Qt Demos \ Item Views \ Puzzle.
It has similar working to your requirement.
Check the Puzzle example in Qt Demos.
Qt Demos \ Item Views \ Puzzle.
It has similar working to your requirement.
I checked that, before I raised question in this forum.
That example is demonstrated in a widget. The drag and paint events are there in the widget itself.
In my scenrio, I have a treeview and all the columns are delegated. When a tree item is dragged, behind the scene the paint method in delegate is not getting called. Once I drop it, the paint is called...
I found some useful thread which helps me to attack my problem.
http://www.qtcentre.org/threads/2829...drop-revisited
Basically we need to emit layoutChanged signal in dropMoveEvent.
Bookmarks