PDA

View Full Version : local html file and QDesktopServices::openUrl



ntp
19th August 2010, 02:38
I have a local html file that I want to open in a browser. Because it has file:// at the beginning of the url, it will not open it in a browser but instead opens it in a filesystem window (i.e. explorer).

Is there any way to get this local html file to open in a browser?

Lykurg
19th August 2010, 08:05
It should work if you remove "file://" from the path and it starts with e.g. "c:\".