Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
5.15.0, 5.15.1
-
None
Description
The example code at end of page https://doc.qt.io/qt-5/qthelp-framework.html should be:
QHelpEngineCore helpEngine("mycollection.qhc"); helpEngine.setUsesFilterEngine(true); ... // get all file references for the identifier QList<QHelpLink> links = helpEngine.documentsForIdentifier(QLatin1String("MyDialog::ChangeButton")); // If help is available for this keyword, get the help data // of the first file reference. >if (links.count()) { QByteArray helpData = helpEngine->fileData(links.cbegin()->url); // show the documentation to the user if (!helpData.isEmpty()) displayHelp(helpData); }