Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why is the fragment removed when using QDesktopServices::openUrl() to open a local file url with a fragment?

0
Posted

Why is the fragment removed when using QDesktopServices::openUrl() to open a local file url with a fragment?

0

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

Thanksgiving questions

*Sadly, we had to bring back ads too. Hopefully more targeted.