Stephen
Stephen

Reputation: 673

What triggers the pyqt dragLeaveEvent

When I'm dragging an item from a tablewidget, what triggers the the drag events, is it the QTableWidget, or the QTableWidgetItem? Or, something all together different? I need to alter my mimeData when it gets selected and is being dragged to a list.

Upvotes: 1

Views: 509

Answers (1)

Stephen
Stephen

Reputation: 673

Ok, I figured out my problem:

It's the QTableWidget that triggers the event. The problem I was having was that I set setDragEnabled(True) after I was trying to use my overridden event function.

Upvotes: 2

Related Questions