Hello, I'm trying to make a simple off-line help for my application. I want to make something of general so I'm trying to lay on QtHelp framework.
I met the QHelpEngine class but relative reference documentation is very poor and I didn't find any how-to. So, following model/viewer programming and after I put help.qhc file in resources directory I did something like this:
QHelpEngine* he = new QHelpEngine(":help/help.qhc");
QHelpContentModel *contentModel = he->contentModel(); QHelpContentWidget *contentWidget = he->contentWidget(); QHelpIndexModel* indexModel = he->indexModel(); QHelpIndexWidget* indexWidget = he->indexWidget(); QSplitter* splitter = new QSplitter(); splitter->addWidget(contentWidget); splitter->addWidget(indexWidget); contentWidget->setModel(contentModel); indexWidget->setModel(indexModel); splitter->show();
but it shows a empty index and a empty content.
Application has no advice output.
Where I did wrong?
Please help me.