[Qt-interest] QHelpEngine question
David Walthall
walthall at wavefun.com
Tue Dec 22 19:08:41 CET 2009
Dominic Stalder wrote:
> Hi there
>
> I have made the qhc file with the qhcp file and added the following
> lines to my application:
>
> QHelpEngine *helpEngine = new
> QHelpEngine(Utilities::filePath("res/doc/wiitetris.qhc"), this);
> helpEngine->setupData()
>
> setupData() returns true, so I think everything is ok. But how can I
> show a help widget based on this engine?
>
> Thanks a lot and regards
> Dominic
Try:
helpEngine->indexWidget()
and
helpEngine->contentWidget()
which returns the QHelpIndexWidget and the QHelpContentWidget. You'll
also probably need to call
helpEngine->registerDocumentation(filename);
and then
helpEngine->setupData();
David
More information about the Qt-interest-old
mailing list