Hi,

i have reimplement the dragMoveEvent from a QTreeWidget, to know if the drop is on the item, before it or after it. A Drop before should not allowed.

Qt Code:
  1. void MyTreeWidget::dragMoveEvent(QDragMoveEvent *event)
  2. {
  3. if ( this->dropIndicatorPosition() == QAbstractItemView::AboveItem )
  4. {
  5. event->ignore();
  6. }
  7. }
To copy to clipboard, switch view to plain text mode 

The event was only ignored before and after the dragged item. Whats going wrong?

Thanks