[SOLVED] QUrl "file:" scheme trouble
-
URLs contain the protocol used to access some resource on the network, not what you want to access.
So "file://" does not state that you want to download a file but that you are accessing a resource in your local filesystem. file urls can not contain a host. Try "file:///somedir/somedoc.txt" instead (note the three slashes).
Since file urls can never point to remote locations it makes little sense to involve the networkaccessmanager to get them.
-
Hmm... Strange. I thought it's ok. From WIKI:
bq. To access a file "the file.txt", the following might be used.
For a network location:
file://hostname/path/to/the file.txtbq.Thank you anyway!
P.S.: is there a simple way to get file from shared folder?
-
Mount the shared folder and then you can access files there like any other local file.