Results 1 to 3 of 3

Thread: QtAssistant won't open help file

  1. #1
    Join Date
    May 2009
    Location
    USA
    Posts
    300
    Thanks
    82
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default QtAssistant won't open help file

    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:

    Qt Code:
    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <QtHelpProject version="1.0">
    3. <namespace>K4ELO.net.QtLogger.1_0</namespace>
    4. <virtualFolder>doc</virtualFolder>
    5. <customFilter name="QtLogger 1.0">
    6. </customFilter>
    7. <filterSection>
    8. <toc>
    9. <section title="QtLogger Help" ref="./QtLogger_Help_Index.html">
    10. <section title="Introduction" ref="./QtLogger_Help_Text.html"/>
    11. <section title="Getting Started" ref="QtLogger_Help_Tex./t.html"/>
    12. <section title="Toolbar" ref="./QtLogger_Help_Text.html"/>
    13. </section>
    14. </toc>
    15. <keywords>
    16. <keyword name="Toolbar" ref="./QtLogger_Help_Text.html"/>
    17. </keywords>
    18. <files>
    19. <file>QtLogger_Help_Index.html</file>
    20. <file>QtLogger_Help_Text.html</file>
    21. </files>
    22. </filterSection>
    23. </QtHelpProject>
    To copy to clipboard, switch view to plain text mode 

    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?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QtAssistant won't open help file

    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:
    Qt Code:
    1. <section title="Introduction" ref="QtLogger_Help_Text.html"/>
    To copy to clipboard, switch view to plain text mode 
    to match:
    Qt Code:
    1. <file>QtLogger_Help_Index.html</file>
    To copy to clipboard, switch view to plain text mode 

  3. The following user says thank you to ChrisW67 for this useful post:

    waynew (2nd March 2010)

  4. #3
    Join Date
    May 2009
    Location
    USA
    Posts
    300
    Thanks
    82
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QtAssistant won't open help file

    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.

Similar Threads

  1. Replies: 5
    Last Post: 15th June 2010, 07:42
  2. Replies: 4
    Last Post: 16th February 2010, 17:42
  3. QtAssistant
    By Ferric in forum Newbie
    Replies: 1
    Last Post: 21st December 2009, 22:34
  4. Replies: 10
    Last Post: 15th June 2009, 19:44
  5. How to open a Pdf file from Qt
    By vishal.chauhan in forum Newbie
    Replies: 2
    Last Post: 28th March 2007, 08:24

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.