The drag and drop demo only returns a mime-type of text/uri-list regardless of what I drop into it.
Any ideas/comments?
The drag and drop demo only returns a mime-type of text/uri-list regardless of what I drop into it.
Any ideas/comments?
That's ok, look here:
http://www.ip97.com/phpgtk/tutorials...d.urilist.html
here (linux, kde) there's also a text/plain format included.
kroenecker (3rd July 2006)
I'm getting closer. I found that uri-list basically is a description of where the dropped file is located. When using mimetypes, the member function urls will return a qlist from which I can get the individual urls of all the files. I'm using QUrl::toLocalFile(). Then I can grab the file and do what I want with it.
If you drag a file from your desktop or file manager, you'll always get the uri-list mime, regardless of the file type. If you want to get the file as application/pdf, the application you drag from has to offer the file in pdf format (meaning that it has to be able to read and maybe also write pdf files) -- like pdf readers. For example my pdf viewer (Kpdf) doesn't support dragging, so it can't offer application/pdf.
kroenecker (6th July 2006)
Bookmarks