Results 1 to 1 of 1

Thread: [resolved] Content in customized Qt Assistant not shown

  1. #1
    Join Date
    Aug 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: [resolved] Content in customized Qt Assistant not shown

    I intend to create a customized Qt Assistant for providing help in my own application.
    I followed the Qt documentation on that topic. The table of contents and all keywords are available when I launch the assistant, but my content is not shown.

    Can anyone spot what I am doing wrong in this stripped down version?

    test.qhp:

    Qt Code:
    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <QtHelpProject version="1.0">
    3. <namespace>test</namespace>
    4. <virtualFolder>doc</virtualFolder>
    5.  
    6. <filterSection>
    7. <toc>
    8. <section title="test" ref="index.html">
    9. </section>
    10. </toc>
    11.  
    12. <keywords>
    13. <keyword name="Test" ref="index.html"/>
    14. </keywords>
    15.  
    16. <files>
    17. <file>index.html</file>
    18. </files>
    19.  
    20. </filterSection>
    21. </QtHelpProject>
    To copy to clipboard, switch view to plain text mode 


    test.qhcp

    Qt Code:
    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <QHelpCollectionProject version="1.0">
    3. <assistant>
    4. <title>test</title>
    5. <!-- <applicationIcon>images/handbook.png</applicationIcon> -->
    6. <cacheDirectory>test/doc</cacheDirectory>
    7.  
    8. <startPage>qthelp://test/doc/index.html</startPage>
    9.  
    10. <aboutMenuText>
    11. <text>About test</text>
    12. </aboutMenuText>
    13.  
    14. <enableDocumentationManager>false</enableDocumentationManager>
    15. <enableAddressBar>false</enableAddressBar>
    16. <enableFilterFunctionality>false</enableFilterFunctionality>
    17. </assistant>
    18.  
    19. <docFiles>
    20. <generate>
    21. <file>
    22. <input>test.qhp</input>
    23. <output>test.qch</output>
    24. </file>
    25. </generate>
    26. <register>
    27. <file>test.qch</file>
    28. </register>
    29. </docFiles>
    30. </QHelpCollectionProject>
    To copy to clipboard, switch view to plain text mode 


    index.html:

    Qt Code:
    1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
    2. <html>
    3. <head>
    4. <title>Test title</title>
    5. </head>
    6. <body>
    7. <h1>index</h1>
    8. This is the index page
    9. </body>
    10. </html>
    To copy to clipboard, switch view to plain text mode 

    I create the qhc file using
    Qt Code:
    1. qcollectiongenerator test.qhcp -o test.qhc
    To copy to clipboard, switch view to plain text mode 

    When I open the assistant using
    Qt Code:
    1. assistant -collectionFile test.qhc
    To copy to clipboard, switch view to plain text mode 
    I only see a blank page, instead of index.html's content.

    Thanks a lot for any help in advance


    Edit:

    Ok, I resolved the problem myself.

    It is caused by a bug in Qt Assistant, which causes small html pages (<512 bytes) not to be rendered
    Last edited by hydrael; 25th August 2012 at 13:21. Reason: updated contents

Similar Threads

  1. Qlabel, customized palette
    By Per in forum Newbie
    Replies: 6
    Last Post: 1st March 2012, 09:17
  2. QWebView Reading content shown by Javascript
    By lhg in forum Qt Programming
    Replies: 0
    Last Post: 14th October 2011, 19:00
  3. customized layout issue
    By sanjayshelke in forum Qt Programming
    Replies: 1
    Last Post: 28th November 2008, 07:02
  4. QStyleOptionProgressBar customized
    By xEsk in forum Qt Programming
    Replies: 1
    Last Post: 11th November 2007, 17:25
  5. Customized Table
    By tunguska in forum Qt Programming
    Replies: 3
    Last Post: 28th September 2007, 17:44

Tags for this Thread

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.