Still no drop indicator. This seems like such a simple operation but I still can't figure out why it's not working.

I thought that using a proxy model might be causing my problems but the proxy model calls setSupportedDragActions( Qt::CopyAction | Qt::MoveAction ) in the constructor which should handle the model side of things. At the end of the proxy ctor the supported actions are:
  • Drop: Qt::CopyAction
  • Drag: Qt::CopyAction | Qt::MoveAction

Here is my dragEnterEvent.

Qt Code:
  1. void SheetView::dragEnterEvent( QDragEnterEvent* pEvent )
  2. {
  3. if ( pEvent->mimeData()->hasFormat( MY_MIMETYPE ) )
  4. pEvent->acceptProposedAction();
  5. else
  6. pEvent->setDropAction( Qt::IgnoreAction );
  7. }
To copy to clipboard, switch view to plain text mode