I found sth strange : when I subclass QAbstractListModel, I have to subclass flags() to have Drag and drop enabled. In QAbstractItemModel, there is only :
Qt Code:
{ if (!index.isValid()) return 0; return Qt::ItemIsSelectable|Qt::ItemIsEnabled; }To copy to clipboard, switch view to plain text mode
Bookmarks