I am trying to expand an existing drag & drop implementation. When dragging a row element from one QTableWidget to another, I need to be able to identify the type of object the row under the mouse cursor represents to determine if a drop is allowed.

For example, I am dragging a row representing an object of type X. The drop table contains objects of type X, Y and Z. When the drag cursor is above objects NOT of type X the cursor should change and a drop not allowed.

Using dragEnterEvent() and dragMoveEvent() I can tell what the row type is when the cursor enters the QTableWidget but not when it moves to another row in the same table. How can I track the position of the curson during a drag operation?