Results 1 to 14 of 14

Thread: qdoc problem

  1. #1
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default qdoc problem

    Hello friends,

    after generating my qch file I add the file to qtcreator documentation list. So after I click on my doc it claims:

    Qt Code:
    1. Die Seite konnte nicht gefunden werden
    2. Fehler beim Laden: qthelp://company.labs.qtestclass.540/qtestclass/index.html
    To copy to clipboard, switch view to plain text mode 

    There is no index.html file on generating docs:

    1. qdoc qtestclass.qdocconf
    2. qhelpgenerator.exe ".\doc\qtestclass.qhp"


    Is there any mini example on how to produce qt like documentation?!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qdoc problem

    Did you generate index page in qdoc?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default Re: qdoc problem

    Yes there is also an *.index file after evaluate
    Qt Code:
    1. qdoc qtestclass.qdocconf
    To copy to clipboard, switch view to plain text mode 

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qdoc problem

    I meant index.html page not an index of pages.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default Re: qdoc problem

    No there isn´t a page you mentioned.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qdoc problem

    So it is nothing unexpected that the viewer cannot find it

    You should create the page yourself, as far as I remember you can do that with:

    Qt Code:
    1. /**
    2.   \page index
    3.   \title Title of the page
    4.  
    5.   Contents of the page
    6. */
    To copy to clipboard, switch view to plain text mode 
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default Re: qdoc problem

    Ok creating file is trivial, but it seem I have a gap in understanding how to refer to the correect uri. qthelp doesnt find the uri

    "qthelp://company.labs.qtestclass.540/qtestclass/index.html"

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qdoc problem

    I'm not sure what you mean. If you setup the virtual folder correctly in one of Qt help files (don't remember which one right now) all should be fine. Did you follow the documentation on how to create help files? Were any pages actually generated? Can you see the html files at all?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #9
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default Re: qdoc problem

    Hello,


    this is my qdocconf file:

    Qt Code:
    1. #include($QT_INSTALL_DOCS/global/qt-module-defaults.qdocconf)
    2. #include($QT_INSTALL_DOCS/global/externalsites.qdocconf)
    3.  
    4. project = qtestclass
    5. description = qtestclass Reference Documentation
    6. version = $QT_VERSION
    7. language = Cpp
    8.  
    9. qhp.projects = qtestclass
    10.  
    11. qhp.qtestclass.file = qtestclass.qhp
    12. qhp.qtestclass.namespace = company.labs.qtestclass.$QT_VERSION_TAG
    13. qhp.qtestclass.virtualFolder = qtestclass
    14. qhp.qtestclass.indexTitle = qtestclass
    15. qhp.qtestclass.indexRoot =
    16.  
    17. qhp.qtestclass.filterAttributes = qtestclass $QT_VERSION qtrefdoc
    18. qhp.qtestclass.customFilters.Qt.name = qtestclass $QT_VERSION
    19. qhp.qtestclass.customFilters.Qt.filterAttributes = qtestclass $QT_VERSION
    20.  
    21.  
    22.  
    23. outputdir = ./doc/
    24.  
    25. headerdirs += ..
    26. sourcedirs += ..
    27.  
    28. sources.fileextensions = "*.cpp *.qdoc *.mm *.qml"
    29. headers.fileextensions = "*.h *.ch *.h++ *.hh *.hpp *.hxx"
    30.  
    31. navigation.landingpage = "qtestclass"
    32. navigation.qmltypespage = "qtestclass QML Type"
    33.  
    34. HTML.extraimages += images/qt-codesample.png
    35. qhp.QtDoc.extraFiles += images/qt-codesample.png
    36.  
    37. # Add an .html file with sidebar content, used in the online style
    38. HTML.stylesheets += style/qt5-sidebar.html
    To copy to clipboard, switch view to plain text mode 

    Then I make :
    Qt Code:
    1. qdoc qtestclass.qdocconf
    To copy to clipboard, switch view to plain text mode 

    This creates: qtestclass.html;qtestclass.index;qtestclass.qhp;qt estclass-members.html
    in doc folder.

    Then for creating qch:
    Qt Code:
    1. qhelpgenerator.exe ".\doc\qtestclass.qhp"
    To copy to clipboard, switch view to plain text mode 

    adding the file to assistant or qtcreator gives me
    Die Seite konnte nicht gefunden werden
    Fehler beim Laden: qthelp://company.labs.qtestclass.540/qtestclass/index.html
    So I read the docs for creating those qdocconf files etc. But I miss a little example which compiles and result in correct documentation.

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qdoc problem

    So you have a list of files without a "index.html" entry and you are wondering why a page called "index.html" cannot be found, correct?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  11. #11
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default Re: qdoc problem

    The documentary did not say anything about the too-existing files. That's why I know not at all what I should be surprised about.
    I do not know at what goes in or what goes out.

  12. #12
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qdoc problem

    Quote Originally Posted by codeman View Post
    The documentary did not say anything about the too-existing files.
    I'm sorry, I don't know what "too-existing" means.

    That's why I know not at all what I should be surprised about.
    I do not know at what goes in or what goes out.
    qhelpgenerator doesn't create documentation files out of thin air, if they don't exist at the moment when qhelpgenerator is run, they will not be included in the archive. Thus if index.html does not exist as you didn't document the page, it will not go into the qch file and will not be found when someone tries to access it.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  13. #13
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default Re: qdoc problem

    too-existing: files that has to be exists.

    I respect your knowlegde, but you explain things like a miracle for me(yes thats my problem I know).
    After running qdoc which section of the documentation says, "the generated files are:" or "after that process there will be created these files etc".

    I have no overview of the ingredients. Do you understand my dilemma...

  14. #14
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qdoc problem

    qdoc is not a magic wand, it creates documentation files out of qualified comments you have to put in your code (like those in post #6). If you don't put any qualified comments, qdoc will not generate any pages. The tool is documented, if you want to use it, I suggest you start by reading its manual.

    E.g. there is a qtbase/src/corelib/doc/src/qtcore-index.qdoc file which is responsible for documenting a qtcore-index.html page which is then displayed as the landing page for "Qt Core" help in Qt5.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  15. The following user says thank you to wysota for this useful post:

    codeman (20th January 2015)

Similar Threads

  1. Qt assistant qdoc how to generate application help
    By salcin in forum Qt Programming
    Replies: 0
    Last Post: 11th February 2014, 16:49

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.