Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Qt Assistant always shows two TOCs

    Tools
    2
    3
    717
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      bkacenas last edited by

      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,

      1 Reply Last reply Reply Quote 0
      • sierdzio
        sierdzio Moderators last edited by

        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.

        (Z(:^

        1 Reply Last reply Reply Quote 0
        • B
          bkacenas last edited by

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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post