HI,

I want to do dragging from QTreeView and dropping them into QTableView, but the data is not same. I need to take the indexes of all dragging nodes and its respective QTreeView class object while Dragging/dropping and will be displaying custom data in QTableView.

QTreeView whose model is derived from QAbstractItemModel.
QTableView with QStandardItemModel.

I have re-implemented the QMimeData* mimeData(const QModelIndexList &indexes) function in in my QTreeView model and dropEvent in QTableView. I am not sure, how to pass the object/indexes in mimeData() function and how can I retrieve the same in dropEvent() ? Currently, event->source() is coming as nullptr in dropEvent()

Any help?