PDA

View Full Version : Open editor on drag/drop



Strongoloid
3rd August 2009, 18:50
Is it possible to open the editor on a QTreeView with a delegate on a drag and drop type action?

For example, I'm dragging an item from one TreeView to another, but instead of the default rectangle appearing on the drop site (to indicate that it is possible to drop on that item), I would like it to open the editor so that I'm effectively dropping into the editor widget that the delegate would create.

It seems like I would have to subclass the view, and maybe reimplement the drag methods (like dragEnterEvent, dragMoveEvent, etc.), but if I don't need to, then that would be better.