move to PyQt5 and fix a bug with mimedata