Use toLocalFile instead og path
As mentioned by pino in D19191. toLocalFile should be used when obtaining the the path to a localFile from a QUrl.