Maybe we can somehow prevent Qt from using this class. It seems that the UniformResourceLocator value is set by a class called QWindowsMimeURI. Our problem is: We want the "magic", but not UniformResourceLocator. , UniformResourceLocator and does some other magic (I guess Ole/COM calls) that makes DnD work. I suspect the following: The Qt implementation checks if #setUrls(.) was called. It lets you perform these tasks much more efficiently than other file managers. You use it to browse directories, copy or move files, mount external drives, etc. fman is an alternative to file managers such as Explorer on Windows or Finder on macOS. This makes things work on Chrome! Unfortunately, it breaks drag and drop to Windows Explorer. Dual-pane file manager for Mac, Windows and Linux. Instead of #setUrls(.), I tried QMimeData#setData(.) to set only FileDrop, FileDropW and FileName as in your app. I think your video shows that it works when the two UniformResourceLocator parameters above are removed. As a result, your app receives the following data: Currently, fman calls QMimeData#setUrls(.) to declare which files are being dragged. I also just spent some time experimenting with your WinForms app.Īs I explained above, the primary data vehicle for drag and drop in Qt is QMimeData. Really strange.Įither way, the fact that mirroring the "data" by setting all the same QMimeData values as above doesn't work, indicates to me that the difference is not in the data but somewhere else.įascinating. Now it is displayed in Chrome! After some more experimentation, the pattern seems to be that DnD works as long as Chrome isn't currently displaying a web site. What's really strange is that also in Chrome, like in ST, DnD works when you perform the same drag operation twice. I tried to follow your suggestion of "not setting it" by not setting text/uri-list. You suggested not setting "UniformResourceLocator". I tried setting all of these in fman as well - no effect. Application/x-qt-windows-mime value="Shell IDList Array"Īpplication/x-qt-windows-mime value="UsingDefaultDragImage"Īpplication/x-qt-windows-mime value="DragImageBits"Īpplication/x-qt-windows-mime value="DragContext"Īpplication/x-qt-windows-mime value="DragSourceHelperFlags"Īpplication/x-qt-windows-mime value="InShellDragLoop"Īpplication/x-qt-windows-mime value="FileName"Īpplication/x-qt-windows-mime value="FileNameW"
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |