QHelpEngineCore* helpEngine = new QHelpEngineCore("myApp.qhc", this); helpEngine->setupData();
QHelpSearchQuery searchQuery; searchQuery.setQuery("how to use this feature"); QListresults = helpEngine->searchResults(searchQuery); foreach (const QHelpSearchResult& result, results) { qDebug() << result.title() << " (" << result.url() << ")"; }
QString helpContent = helpEngine->fileData("help.html"); QTextBrowser* helpBrowser = new QTextBrowser(); helpBrowser->setHtml(helpContent);These examples demonstrate basic usage of the QHelpEngineCore class. The package library that QHelpEngineCore belongs to is the Qt Help module, which provides classes and functions for creating and displaying help documentation in Qt applications.