May I ask, why do you insist of rewriting error prone mimeData() and dropMimeData() if QAbstractItemModel/QAbstractTableModel already implements them for you? Just take a look at src/corelib/kernel/qabstractitemmodel.cpp if you don't believe me.All the data returned by itemData() is packed to MIME data by default so you can simply embed your CAN messages to those. As a proof of concept, I have attached an example which does not reimplement mimeData() nor dropMimeData().
Bookmarks