Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

How to open documentation in qch format in Debian based systems?

+1
−0

I wanted to download C++ documentation and found cppreference-doc-en-qch in Debian's archive:

Description: C and C++ standard library reference (English, Qt Help variant) A version of online C and C++ standard library reference manual available at en.cppreference.com, suitable for viewing offline. . This package contains a Qt Help book.

dpkg -L cppreference-doc-en-qch reveals only /usr/share/cppreference/doc/qch/cppreference-doc-en-cpp.qch, and xdg-open doesn't know how to open it.

How do I actually read this piece of documentation I just installed, or, in general, qch files?

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

0 comment threads

2 answers

+0
−0
  • Install Qt Assistant (either 5 or 6 works):

     apt install qt5-assistant
    

    This might be already installed, the package in the question does depend on it but for some reason qt5-doc does not, it only recommends it.

  • Option 1: Load it with the CLI

    • Register the help file in the Qt Assistant:

       assistant -register /usr/share/cppreference/doc/qch/cppreference-doc-en-cpp.qch
      

      It should output "Documentation successfully registered."

    • Open the Qt Assistant:

       assistant
      
  • Option 2: Load it with the GUI

    • Open the Qt Assistant:

       assistant
      
    • In the window that opens, go to Edit > Preferences > Documentation > Add.

    • In the file chooser dialogue box that opens, choose the qch file you want to view, i.e. /usr/share/cppreference/doc/qch/cppreference-doc-en-cpp.qch.

  • The program may take some time to update the search index; This will be indicated by a loading bar in the bottom right corner.

  • The documentation is now available through the program, you can select in the contents pane as depicted below or just search the index.

Documentation of std::basic_string in the Qt Assistant

Tested with Qt Assistant 5.15.13.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

0 comment threads

+0
−0

A web search turned up the Qt online documentation, which suggests using Qt Assistant to organize and read help files packaged as *.qch files.

That looks to be packaged by Debian as assistant-qt6. Alternatively, cppreference-doc-en-qch depends on qttools5-dev-tools which in turn pulls in qt5-assistant which provides /usr/lib/qt5/bin/assistant.

As an alternative in this specific case, Debian also packages what looks to be that same documentation in HTML format as cppreference-doc-en-html.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

1 comment thread

Although the link explains how in "Adding documentation" — with a small mistake, by the use of "Insta... (1 comment)

Sign up to answer this question »