If that is all of your tree view code, why subclass QTreeView?

Take a look at the source code of QAbstractItemView::dragMoveEvent() (here) to see what you are overriding.