Hello Etienne,
QUrl::path does not return a local file path, but rather the path part
of the URL, which is indeed "/C:\Users\foo\file.txt".
I think what you're looking for is QUrl::toLocalFile().
Julien Cugnière
2017-07-06 10:57 GMT+02:00 Etienne Sandré-Chardonnal :
> Dear all,
>
> I'm implemen
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()