Qt Assistant always shows two TOCs



  • I have just started working with Qt Assistant for creating a help system for my applications. Everything seems to be working as advertised except that I always get two identical tables of contents instead of a single table like I should. I have included the .qhp file below. I removed the contents of the keywords and files section to reduce amount of text.

    @<?xml version="1.0" encoding="UTF-8"?>
    <QtHelpProject version="1.0">
    <namespace>printdir</namespace>
    <virtualFolder>doc</virtualFolder>
    <filterSection>
    <toc>
    <section title = "PrintDir - Diretory Listing Utility" ref = "index.html">
    <section title = "Menus" ref = "Menus.html">
    <section title = "Print/Save" ref = "PrintSave.html">
    <section title = "Print" ref = "Print.html"></section>
    <section title = "Print Preview" ref = "PrintPreview.html"></section>
    <section title = "Page Setup" ref = "PageSetup.html"></section>
    <section title = "Save As" ref = "SaveAs.html"></section>
    </section>

                    <section title = "Help" ref = "HelpMenu.html">
                        <section title = "What's This" ref = "WhatsThis.html"></section>
                    </section>
                </section>
    
                <section title = "Tool Bar" ref = "ToolBar.html">
                    <section title = "Print" ref = "Print.html"></section>
                    <section title = "Print Preview" ref = "PrintPreview.html"></section>
                    <section title = "Save As" ref = "SaveAs.html"></section>
                    <section title = "What's This" ref = "WhatsThis.html"></section>
                </section>
    
                <section title = "Controls" ref = "Controls.html">
                    <section title = "Directory Edit Box" ref = "DirectoryEdit.html"></section>
                    <section title = "Browse Pushbutton" ref = "Browse.html"></section>
                    <section title = "Include In Listing Group" ref = "IncludedIn.html"></section>
                    <section title = "Save Listing Group" ref = "SaveListing.html"></section>
                    <section title = "Print Pushbutton" ref = "Print.html"></section>
                    <section title = "Print Preview Pushbutton" ref = "PrintPreview.html"></section>
                </section>
    
                <section title = "Short Cuts" ref = "ShortCuts.html"></section>
            </section>
        </toc>
    
        <keywords>
        </keywords>
    
        <files>
        </files>
    </filterSection>
    

    </QtHelpProject>
    @

    As you can see, I have only one toc but two complete tables always appear in Qt Assistant.

    I would appreciate any thoughts you might have on this subject.

    Regards,


  • Moderators

    It is quite possible that the table of contents is created automatically based on the actual contents. Not sure because I've not hand-crafted qhp files myself, always used a doc generator like qdoc or doxygen.



  • Thanks for the lead. I’ll look into that possibility.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.