QDesktopServices and Networkpath
I want to use QDesktopServices.openUrl() to open webpages with flash-content, pdf-docs, etc. which are stored in a network-attached storage. The path to the ressources looks like this:
embedded in html
Opening this url with QDesktopServices.openUrl() doesn't work. However, if I connect this network location to a local drive (e.g. Z:) it does work as expected.
The problem is, I can't expect the user to map the drive manually.
Any hints are highly appreciated, cheers,
But when I paste an network path in IE it works as expected. It just doesn't work with QDesktopServices ....
IE is a Browser!!! (try to leave http:// and it will still work but its a thing of the Browser to add it)
IE is not HTML!
Hmmm, okay, I'm not sure if I get it ... so one more example of what I'm doing (I might not have been very clear in my top post, sorry for that ...):
I've got a html document on //nas01/dir/index.html. I open this html with QWebkit:
self.web_viewer = QtWebKit.QWebView()
def open_in_external_browser(self, url): QDesktopServices.openUrl(url)
Now I want that all links in this index.html are opened with the standard applications, e.g. IE (for flash content, I know there're ways to enable this in QWebKit, but I can't use those), Adobe Reader, Word, Outlook, ...
My html looks like this:
<a href="stuff/stuff_doc.pdf">Stuff Documentation</a>
All files are located at the nas //nas01/dir/ and subdirs.
When I replace the locations in the index.html by absolute paths pointing to a mapped drive, e.g. Z:\dir\doc.pdf where //nas01 is mounted at Z:, it does work as expected. Unfortunately I can't do that in my production environment.