'dragMoveEvent for dragging files and directories into the widget.'

def dragMoveEvent(self, event):

    if event.mimeData().hasUrls:
        event.setDropAction(QtCore.Qt.CopyAction)
        event.accept()
    else:
        event.ignore()
