PDA

View Full Version : QtAssistant won't open help file



waynew
27th February 2010, 02:32
I have almost gotten QtAssistant working with my application, but not quite.
It opens ok and displays the table of contents, but when you click on a topic, it doesn't open the help file in the right side pane. I think the problem is in the html help in the qhc file - I don't know how to tag the sections there so they can be found. This must be simple, but I can't seem to find an answer.

Here is the qhp file:



<?xml version="1.0" encoding="UTF-8"?>
<QtHelpProject version="1.0">
<namespace>K4ELO.net.QtLogger.1_0</namespace>
<virtualFolder>doc</virtualFolder>
<customFilter name="QtLogger 1.0">
</customFilter>
<filterSection>
<toc>
<section title="QtLogger Help" ref="./QtLogger_Help_Index.html">
<section title="Introduction" ref="./QtLogger_Help_Text.html"/>
<section title="Getting Started" ref="QtLogger_Help_Tex./t.html"/>
<section title="Toolbar" ref="./QtLogger_Help_Text.html"/>
</section>
</toc>
<keywords>
<keyword name="Toolbar" ref="./QtLogger_Help_Text.html"/>
</keywords>
<files>
<file>QtLogger_Help_Index.html</file>
<file>QtLogger_Help_Text.html</file>
</files>
</filterSection>
</QtHelpProject>


So what needs to be done in the QtLogger_Help_Text file to tag those sections so they can be found from the toc references? Or is that really the problem?

ChrisW67
2nd March 2010, 01:10
Looks fairly similar to a help project of mine. You could try removing the "./" from the front of the <section> ref file names so that they exactly match the names in the <file> elements:


<section title="Introduction" ref="QtLogger_Help_Text.html"/>

to match:


<file>QtLogger_Help_Index.html</file>

waynew
2nd March 2010, 02:26
Thanks Chris. I decided to use a QDockWidget with a QSplitter to display the help files in. Working fine now.
Yes, the problem was the links in the html files. A friend and fellow Qter got me to an html editor that helps put the links in, so now it links properly and double clicking the item in the contents or index opens the associated file ok.