Copy-pasting items (Ctrl+C, Ctrl+X and Ctrl+V) in a QTreeView - any default implementation available?
Violet Giraffe last edited by
I've started implementing copy-paste functionality for my QTreeView descendant manually, using mimeData() and dropMimeData() methods that I have properly implemented for my model. But then I realized: since these methods are implemented, why couldn't the base QTreeView implementation handle Ctrl+C and Ctrl+V? I tried it and it doesn't seem to work, but perhaps I just need to enable this functionality same way as I have to enable drag and drop?
AFAIK, there's no pre-made stuff for copy/paste in QTreeView