Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Javascript in qch files for QtAssistent (generated by Doxygen) doesn't work

Javascript in qch files for QtAssistent (generated by Doxygen) doesn't work

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 1 Posters 1.9k Views
  • 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.
  • L Offline
    L Offline
    LinusA
    wrote on last edited by
    #1

    We're generating the documentation of our C++ sourcecode with Doxygen. The outputs are HTML files and a single QCH file, which can be loaded into QtAssistant.

    Everything used to work ok, but unfortunately, when using a fairly new version of Doxygen (we're using latest stable ver 1.8.6 right now), there are many interactive elements on the generated HTML documentation pages, i.e. to show inherited methods, signals, etc.

    The problem: In browsers, the interactive functions (such as menus / drop-down toggles) are perfectly working, in QtAssistant they are not. When looking into the HTML source code, one can see that the functionality is implemented via Javascript. So my question:

    1.) Does anybody know whether Javascript works inside QtAssistant, or how to turn it on?
    2.) Does anybody know how to turn off these dynamic features in Doxygen, in order to get a usable QCH version?
    3.) Any other suggesstions?

    Example: By random googling if found this example page: http://fossies.org/dox/doxygen-1.8.6.src/classOutputGenerator.html

    If you look at the "Public member functions inherited from" sections, you'll see the toggle button I mean, which doesn't work in QtAssistant. The source code for this says:
    @<td onclick="java_script:toggleInherit('pub_methods_classBaseOutputDocInterface')" colspan="2">@
    (I had to replace javascript with java_script for it to show up).

    1 Reply Last reply
    0
    • L Offline
      L Offline
      LinusA
      wrote on last edited by
      #2

      Update:

      2.) Apparently, setting HTML_DYNAMIC_SECTIONS = NO should turn off the interactive Javascript-toggles, but it does not. I also tried GENERATE_TREEVIEW = NO to avoid any dynamic content. But again, dynamic sections still there. :-(

      I also manually included two Javascript-files from Doxygen into the generated index.qhp-file (dynsections.js and jquery.js intp the files-sections), which were apparently missing before. I then used qhelpgenerator to create a new .QCH file (which was indeed slightly bigger). Unfortunatley, this didn't help.

      Oh and btw., I'm using Qt 4.8

      I also posted on the doxygen-developers mailinglist here: https://sourceforge.net/p/doxygen/discussion/130996/thread/637e1d74/

      Still, any comments welcome!

      1 Reply Last reply
      0
      • L Offline
        L Offline
        LinusA
        wrote on last edited by
        #3

        Update: I think I could verify two bugs in Doxygen. I posted them here https://sourceforge.net/p/doxygen/discussion/130996/thread/f30fd882/ and here https://sourceforge.net/p/doxygen/discussion/130996/thread/f30fd882/ . In the latter link, I explained how to fix this problem manually... So it's not a problem of Qt Assistant per se.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved