Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Assistant: how to reference Qt resources?
Forum Updated to NodeBB v4.3 + New Features

Qt Assistant: how to reference Qt resources?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 166 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    barbicels
    wrote on last edited by
    #1

    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 tell qhelpgenerator 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).

    1 Reply Last reply
    0
    • Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      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?

      Software Engineer
      The Qt Company, Oslo

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved