//! [0] #include //! [0] //! [1] CONFIG += help //! [1] //! [2] qhelpgenerator doc.qhp -o doc.qch //! [2] //! [3] doc.qch //! [3] //! [4] qcollectiongenerator mycollection.qhcp -o mycollection.qhc //! [4] //! [5] ... doc.qhp doc.qch doc.qch ... //! [5] //! [6] QHelpEngineCore helpEngine("mycollection.qhc"); ... // get all file references for the identifier QMap links = helpEngine.linksForIdentifier(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.constBegin().value()); // show the documentation to the user if (!helpData.isEmpty()) displayHelp(helpData); } //! [6] //! [7] mycompany.com.myapplication.1_0 doc myapp 1.0 myapp 1.0
classic.css *.html //! [7] //! [8] ... doc ... //! [8] //! [9] ... myapp 1.0 ... //! [9] //! [10] ... myapp 1.0 ... //! [10] //! [11] ...
... //! [11] //! [12] ... ... //! [12] //! [13] ... classic.css *.html ... //! [13]