Copy-pasting items (Ctrl+C, Ctrl+X and Ctrl+V) in a QTreeView - any default implementation available?



  • 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?


  • Lifetime Qt Champion

    Hi,

    AFAIK, there's no pre-made stuff for copy/paste in QTreeView


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.