Why is the fragment removed when using QDesktopServices::openUrl() to open a local file url with a fragment?
When opening a local file url with a fragment using QDesktopServices::openUrl() then the fragment will not be shown due to a Windows limiation. A url containing the following string for example …/extensionsystem-pluginview.html#pluginActivated” will only display the …/extensionsystem-pluginview.html part. This is because Windows operates on files, and the fragment part (#pluginActivated in the example above) breaks the file name handling. Note that if you want to provide help documentation for your application, then the recommended way of providing help documentation with Qt is to use Qt Assistant. Qt Assistant can use HTML source and make it viewable through assistant.
Related Questions
- I talked to the local commercial radio station and they told me that I can’t get a licence from the CRTC because they would file an intervention against us. Are we out of luck?
- What is the difference between inserting a local media file and inserting a URL? Which method is recommended?
- Can I access my local HTML file though Skyfire?