How to get QHelpIndexModel from QHelpEngine?
-
Dear all,
I would like to get all index list from QHelpEngine. I tried like that but empty return.
What's wrong with that code?@QHelpEngine *engine = new QHelpEngine(QString fileName);
engine->setupData();
qDebug()<<engine->filterAttributes; //return all filter attributes
qDebug()<<engine->indexModel()->stringList(); //empty string list return(error)@Thanks
-
Maybe a race condition: The help search indexe runs in a separate thread. It could be that the indexing has been finished after your call of isCreatingIndex() (that's why that one returns true) and before the connect statement finishes. That's why the emitted signal is not delivered.
-