QTableView internal drag&drop: Disallow drop on other items
Unsolved
General and Desktop
-
Hi, I'm currently implementing an internal drag&drop feature for a QTableView and it seems to work fine out of the box like this:
table->setDragEnabled(true); table->setDragDropMode(QAbstractItemView::InternalMove); table->setDragDropOverwriteMode(false);
No drag&drop specific changes have been made to the model. The only issue is that this feature allows drops on other items, which produces unspecified behavior in my case. I only want to allow drops above or below other items. The OnItem drop indicator shouldn't even appear, only AboveItem & BelowItem.
Where do I need to handle this? -
Hi,
What happens with your model ?