2012-08-25 2 views
2

내 응용 프로그램에서 도움말을 제공하기 위해 사용자 화 된 Qt 길잡이를 만들려고합니다.
나는 그 주제에 대한 Qt 문서화를 따랐다. 도우미를 시작할 때 목차와 모든 키워드를 사용할 수 있지만 내 콘텐츠는 표시되지 않습니다.맞춤 Qt 길잡이 : 내용이 표시되지 않습니다.

아무도 내가이 잘못된 버전에서 잘못 처리 한 것을 발견 할 수 있습니까?

test.qhp :

<?xml version="1.0" encoding="UTF-8"?> 
<QtHelpProject version="1.0"> 
    <namespace>test</namespace> 
    <virtualFolder>doc</virtualFolder> 

    <filterSection> 
    <toc> 
     <section title="test" ref="index.html"> 
     </section> 
    </toc> 

    <keywords> 
     <keyword name="Test" ref="index.html"/> 
    </keywords> 

    <files> 
     <file>index.html</file> 
    </files> 

    </filterSection> 
</QtHelpProject> 

test.qhcp :

<?xml version="1.0" encoding="UTF-8"?> 
<QHelpCollectionProject version="1.0"> 
    <assistant> 
    <title>test</title> 
    <!--  <applicationIcon>images/handbook.png</applicationIcon> --> 
    <cacheDirectory>test/doc</cacheDirectory> 

    <startPage>qthelp://test/doc/index.html</startPage> 

    <aboutMenuText> 
     <text>About test</text> 
    </aboutMenuText> 

    <enableDocumentationManager>false</enableDocumentationManager> 
    <enableAddressBar>false</enableAddressBar> 
    <enableFilterFunctionality>false</enableFilterFunctionality> 
    </assistant> 

    <docFiles> 
    <generate> 
     <file> 
     <input>test.qhp</input> 
     <output>test.qch</output> 
     </file> 
    </generate> 
    <register> 
     <file>test.qch</file> 
    </register> 
    </docFiles> 
</QHelpCollectionProject> 

index.html을 :

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> 
<html> 
    <head> 
    <title>Test title</title> 
    </head> 
    <body> 
    <h1>index</h1> 
    This is the index page 
    </body> 
</html> 

내가 QHC 파일 유를 만들 sing qcollectiongenerator test.qhcp -o test.qhc

assistant -collectionFile test.qhc을 사용하여 보조자를 열면 index.html의 내용 대신 빈 페이지가 나타납니다.

답변

관련 문제