Re: [Interest] Decoding drag&drop file URLs under Windows with QUrl

2017-07-06 Thread Julien Cugnière
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

[Interest] Decoding drag&drop file URLs under Windows with QUrl

2017-07-06 Thread Etienne Sandré-Chardonnal
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()