[Interest] Decoding drag&drop file URLs under Windows with QUrl
Etienne Sandré-Chardonnal
etienne.sandre at m4x.org
Thu Jul 6 10:57:55 CEST 2017
Dear all,
I'm implementing file dropping into my windows application.
I retrieve the URLs via mimeData->urls() in subclassed dropMimeData
functions.
When dropping a file, QUrl::toString() returns something like this:
file:///C:\Users\foo\file.txt
And when getting the path with QUrl::path(), I get:
/C:\Users\foo\file.txt
which is not valid
So it seems the file:/// triple slash windows format is not parsed properly.
Is this a QUrl windows bug? I'm using Qt 5.6.2
Thanks,
Etienne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170706/b6f43085/attachment.html>
More information about the Interest
mailing list