Moving Python objects around a QAbstractItemModel and QTreeView drag/drop

Scott Ballard scott at scottballard.net
Mon Sep 28 03:06:40 BST 2020


Howdy,

Have there been any advances made in drag/drop Python objects contained in
a QAbstractItemModel and QTreeView? Years ago you'd have to pickle the
Python object into a QMimeData and after the move decode it. This seems a
bit crazy just to move an item in a TreeView.

Thoughts?

Cheers
Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20200927/76d8a8cd/attachment.htm>


More information about the PyQt mailing list