Oh yeah I didn't notice I have to "accept" the drag first, thanks ;)
If it helps anyone who was also wondering how to do a drag an drop in PySide, here is my working code:
@ @Slot(QDropEvent)
def dropEvent(self, event):
self.loadInputFile(self.dropFile)
@Slot(QDragEnterEvent)
def dragEnterEvent(self, event):
m = event.mimeData()
if m.hasUrls():
self.dropFile = m.urls()[0].toLocalFile()
event.acceptProposedAction()@