List *.qch (Qt Compressed Help) files referenced by *.qhc (Qt Help Collection)



  • Using Qt Assistant GUI I can see which documentation is registered to a given collection by going to Edit → Preferences... and selecting the Documentation tab. Hovering over the entries can show the *.qch file associated with the namespace (On Windows, doesn't seem to work on Linux).

    I'm looking for a way to list the full path of *.qch files associated with a collection on the command line, though I can't see a way this is possible with the assistant—ideally keeping to native tools, I'm aware it's possible to do this with sqlite3 like:

    $ sqlite3 ./CollectionFile.qhc "SELECT FilePath FROM NamespaceTable;"
    

    However I need a solution that works on Windows as well as Linux, and I can't guarantee sqlite3 will be available on Linux either.

    Can anyone help? Thanks.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    You can write your own small tool using Qt's SQL module which has support for SQLite by default.



  • So to be clear, you're not aware of any way it can be achieved with just the Qt tools themselves?


  • Lifetime Qt Champion

    Indeed, I'm not aware of such an option (which doesn't mean it doesn't exists though).

    Modifying Assistant's code could be another option as in a new feature you could provide.


Log in to reply