'Reimplement Qt method
Inform Qt about the types of data that the widget accepts'

def dragEnterEvent(self, event):

    source = event.mimeData()
    if source.hasUrls():
        if mimedata2url(source):
            event.acceptProposedAction()
        else:
            event.ignore()
    elif source.hasText():
        event.acceptProposedAction()
