How do I open .qch files?
Sebastian Wright
I've installed the qt5-doc package but I'm not able to open the .qch files that I find in the /usr/share/qt5/doc/ directory.
Do you know how I can do this?
I've tried using qt5-assistant like this: assistant -collectionFile <help-file>.qhc but that didn't show anything.
1 Answer
To read pre-installed documentation you have to run Qt Assistant without arguments assistant and then select needed category from the Contents tab.
To open custom *.qch file you have to:
download it
cd /tmp wgetcreate new collection for it
touch /tmp/my.qhcregister file in the new collection
assistant -collectionFile /tmp/my.qhc -register /tmp/qwt-6.0.1.qch;open Qt Assistant with new collection
assistant -collectionFile /tmp/my.qhcand navigate to the newly created entry in Contents (Qwt User's Guide 6.0.1 in my case).
Sources: