<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qhelpcontentwidget.cpp --> <title>QHelpContentItem Class | Qt Help 5.11</title> <link rel="stylesheet" type="text/css" href="style/offline-simple.css" /> <script type="text/javascript"> document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css"); // loading style sheet breaks anchors that were jumped to before // so force jumping to anchor again setTimeout(function() { var anchor = location.hash; // need to jump to different anchor first (e.g. none) location.hash = "#"; setTimeout(function() { location.hash = anchor; }, 0); }, 0); </script> </head> <body> <div class="header" id="qtdocheader"> <div class="main"> <div class="main-rounded"> <div class="navigationbar"> <table><tr> <td ><a href="../qtdoc/index.html">Qt 5.11</a></td><td ><a href="qthelp-index.html">Qt Help</a></td><td ><a href="qthelp-module.html">C++ Classes</a></td><td >QHelpContentItem</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right">Qt 5.11.2 Reference Documentation</td> </tr></table> </div> </div> <div class="content"> <div class="line"> <div class="content mainContent"> <div class="sidebar"> <div class="toc"> <h3><a name="toc">Contents</a></h3> <ul> <li class="level1"><a href="#public-functions">Public Functions</a></li> <li class="level1"><a href="#details">Detailed Description</a></li> </ul> </div> <div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">QHelpContentItem Class</h1> <!-- $$$QHelpContentItem-brief --> <p>The <a href="qhelpcontentitem.html">QHelpContentItem</a> class provides an item for use with <a href="qhelpcontentmodel.html">QHelpContentModel</a>. <a href="#details">More...</a></p> <!-- @@@QHelpContentItem --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QHelpContentItem></span> </td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += help</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 4.4</td></tr></table></div><ul> <li><a href="qhelpcontentitem-members.html">List of all members, including inherited members</a></li> </ul> <a name="public-functions"></a> <h2 id="public-functions">Public Functions</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qhelpcontentitem.html#dtor.QHelpContentItem">~QHelpContentItem</a></b>()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QHelpContentItem *</td><td class="memItemRight bottomAlign"><b><a href="qhelpcontentitem.html#child">child</a></b>(int <i>row</i>) const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qhelpcontentitem.html#childCount">childCount</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qhelpcontentitem.html#childPosition">childPosition</a></b>(QHelpContentItem *<i>child</i>) const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QHelpContentItem *</td><td class="memItemRight bottomAlign"><b><a href="qhelpcontentitem.html#parent">parent</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qhelpcontentitem.html#row">row</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qhelpcontentitem.html#title">title</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QUrl </td><td class="memItemRight bottomAlign"><b><a href="qhelpcontentitem.html#url">url</a></b>() const</td></tr> </table></div> <a name="details"></a> <!-- $$$QHelpContentItem-description --> <div class="descr"> <h2 id="details">Detailed Description</h2> <p>The <a href="qhelpcontentitem.html">QHelpContentItem</a> class provides an item for use with <a href="qhelpcontentmodel.html">QHelpContentModel</a>.</p> </div> <!-- @@@QHelpContentItem --> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$~QHelpContentItem[overload1]$$$~QHelpContentItem --> <h3 class="fn" id="dtor.QHelpContentItem"><a name="dtor.QHelpContentItem"></a>QHelpContentItem::<span class="name">~QHelpContentItem</span>()</h3> <p>Destroys the help content item.</p> <!-- @@@~QHelpContentItem --> <!-- $$$child[overload1]$$$childint --> <h3 class="fn" id="child"><a name="child"></a><span class="type">QHelpContentItem</span> *QHelpContentItem::<span class="name">child</span>(<span class="type">int</span> <i>row</i>) const</h3> <p>Returns the child of the content item in the give <i>row</i>.</p> <p><b>See also </b><a href="qhelpcontentitem.html#parent">parent</a>().</p> <!-- @@@child --> <!-- $$$childCount[overload1]$$$childCount --> <h3 class="fn" id="childCount"><a name="childCount"></a><span class="type">int</span> QHelpContentItem::<span class="name">childCount</span>() const</h3> <p>Returns the number of child items.</p> <!-- @@@childCount --> <!-- $$$childPosition[overload1]$$$childPositionQHelpContentItem* --> <h3 class="fn" id="childPosition"><a name="childPosition"></a><span class="type">int</span> QHelpContentItem::<span class="name">childPosition</span>(<span class="type">QHelpContentItem</span> *<i>child</i>) const</h3> <p>Returns the position of a given <i>child</i>.</p> <!-- @@@childPosition --> <!-- $$$parent[overload1]$$$parent --> <h3 class="fn" id="parent"><a name="parent"></a><span class="type">QHelpContentItem</span> *QHelpContentItem::<span class="name">parent</span>() const</h3> <p>Returns the parent content item.</p> <!-- @@@parent --> <!-- $$$row[overload1]$$$row --> <h3 class="fn" id="row"><a name="row"></a><span class="type">int</span> QHelpContentItem::<span class="name">row</span>() const</h3> <p>Returns the row of this item from its parents view.</p> <!-- @@@row --> <!-- $$$title[overload1]$$$title --> <h3 class="fn" id="title"><a name="title"></a><span class="type"><a href="../qtcore/qstring.html">QString</a></span> QHelpContentItem::<span class="name">title</span>() const</h3> <p>Returns the title of the content item.</p> <!-- @@@title --> <!-- $$$url[overload1]$$$url --> <h3 class="fn" id="url"><a name="url"></a><span class="type"><a href="../qtcore/qurl.html">QUrl</a></span> QHelpContentItem::<span class="name">url</span>() const</h3> <p>Returns the URL of this content item.</p> <!-- @@@url --> </div> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.<br/> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br/> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. </p> </div> </body> </html>