Qt Assistant: how to reference Qt resources?
-
I have some HTML files that contain references to Qt resources, such as
<img src=":/picture">
, which work nicely with the Qt resource system when this HTML is displayed inside my application.
I would like those same HTML files to be integrated into my Qt Assistant help collection, but I can't figure how to tellqhelpgenerator
where my Qt resources live. Is there any support for Qt resources in the Qt Assistant application? If so, I'm not seeing it in Qt 6.7 documentation.
I would rather not go back to using relative-path references to images in these HTML files, because, while that works spiffingly in Qt Assistant, it gives inconsistent results when that same HTML is displayed inside my application, because my resources' location has a different relative path from the application binary on different platforms (thank you, macOS bundle structures). -
Qt Assistant expects consistent HTML code, which theoretically could also be viewed in a browser or another HTML viewer.
Such an HTML code would be inconsistent, if it would reference images from a Qt resource file system.
I don't see a use case for HTML resources living in a foreign tree. Why not place these resources inside the HTML tree?