<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qxmlstream.cpp --> <title>QXmlStreamNamespaceDeclaration Class | Qt Core 5.12.6</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 >Qt 5.12</td><td ><a href="qtcore-index.html">Qt Core</a></td><td ><a href="qtcore-module.html">C++ Classes</a></td><td >QXmlStreamNamespaceDeclaration</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right"><a href="qtcore-index.html">Qt 5.12.6 Reference Documentation</a></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="#related-non-members">Related Non-Members</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">QXmlStreamNamespaceDeclaration Class</h1> <!-- $$$QXmlStreamNamespaceDeclaration-brief --> <p>The <a href="qxmlstreamnamespacedeclaration.html">QXmlStreamNamespaceDeclaration</a> class represents a namespace declaration. <a href="#details">More...</a></p> <!-- @@@QXmlStreamNamespaceDeclaration --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QXmlStreamNamespaceDeclaration></span> </td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += core</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 4.3</td></tr></table></div><ul> <li><a href="qxmlstreamnamespacedeclaration-members.html">List of all members, including inherited members</a></li> </ul> <p><b>Note:</b> All functions in this class are reentrant.</p> <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="qxmlstreamnamespacedeclaration.html#QXmlStreamNamespaceDeclaration">QXmlStreamNamespaceDeclaration</a></b>()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamnamespacedeclaration.html#QXmlStreamNamespaceDeclaration-1">QXmlStreamNamespaceDeclaration</a></b>(const QXmlStreamNamespaceDeclaration &<i>other</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamnamespacedeclaration.html#QXmlStreamNamespaceDeclaration-2">QXmlStreamNamespaceDeclaration</a></b>(QXmlStreamNamespaceDeclaration &&<i>other</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamnamespacedeclaration.html#QXmlStreamNamespaceDeclaration-3">QXmlStreamNamespaceDeclaration</a></b>(const QString &<i>prefix</i>, const QString &<i>namespaceUri</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamnamespacedeclaration.html#dtor.QXmlStreamNamespaceDeclaration">~QXmlStreamNamespaceDeclaration</a></b>()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QStringRef </td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamnamespacedeclaration.html#namespaceUri">namespaceUri</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QStringRef </td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamnamespacedeclaration.html#prefix">prefix</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamnamespacedeclaration.html#operator-not-eq">operator!=</a></b>(const QXmlStreamNamespaceDeclaration &<i>other</i>) const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QXmlStreamNamespaceDeclaration &</td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamnamespacedeclaration.html#operator-eq">operator=</a></b>(QXmlStreamNamespaceDeclaration &&<i>other</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QXmlStreamNamespaceDeclaration &</td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamnamespacedeclaration.html#operator-eq-1">operator=</a></b>(const QXmlStreamNamespaceDeclaration &<i>other</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamnamespacedeclaration.html#operator-eq-eq">operator==</a></b>(const QXmlStreamNamespaceDeclaration &<i>other</i>) const</td></tr> </table></div> <a name="related-non-members"></a> <h2 id="related-non-members">Related Non-Members</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamnamespacedeclaration.html#QXmlStreamNamespaceDeclarations-typedef">QXmlStreamNamespaceDeclarations</a></b></td></tr> </table></div> <a name="details"></a> <!-- $$$QXmlStreamNamespaceDeclaration-description --> <div class="descr"> <h2 id="details">Detailed Description</h2> <p>The <a href="qxmlstreamnamespacedeclaration.html">QXmlStreamNamespaceDeclaration</a> class represents a namespace declaration.</p> <p>An namespace declaration consists of a <a href="qxmlstreamnamespacedeclaration.html#prefix">prefix</a>() and a <a href="qxmlstreamnamespacedeclaration.html#namespaceUri">namespaceUri</a>().</p> </div> <!-- @@@QXmlStreamNamespaceDeclaration --> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$QXmlStreamNamespaceDeclaration[overload1]$$$QXmlStreamNamespaceDeclaration --> <h3 class="fn" id="QXmlStreamNamespaceDeclaration"><a name="QXmlStreamNamespaceDeclaration"></a>QXmlStreamNamespaceDeclaration::<span class="name">QXmlStreamNamespaceDeclaration</span>()</h3> <p>Creates an empty namespace declaration.</p> <!-- @@@QXmlStreamNamespaceDeclaration --> <!-- $$$QXmlStreamNamespaceDeclaration$$$QXmlStreamNamespaceDeclarationconstQXmlStreamNamespaceDeclaration& --> <h3 class="fn" id="QXmlStreamNamespaceDeclaration-1"><a name="QXmlStreamNamespaceDeclaration-1"></a>QXmlStreamNamespaceDeclaration::<span class="name">QXmlStreamNamespaceDeclaration</span>(const <span class="type"><a href="qxmlstreamnamespacedeclaration.html#QXmlStreamNamespaceDeclaration">QXmlStreamNamespaceDeclaration</a></span> &<i>other</i>)</h3> <p>Creates a copy of <i>other</i>.</p> <!-- @@@QXmlStreamNamespaceDeclaration --> <!-- $$$QXmlStreamNamespaceDeclaration$$$QXmlStreamNamespaceDeclarationQXmlStreamNamespaceDeclaration&& --> <h3 class="fn" id="QXmlStreamNamespaceDeclaration-2"><a name="QXmlStreamNamespaceDeclaration-2"></a>QXmlStreamNamespaceDeclaration::<span class="name">QXmlStreamNamespaceDeclaration</span>(<span class="type"><a href="qxmlstreamnamespacedeclaration.html#QXmlStreamNamespaceDeclaration">QXmlStreamNamespaceDeclaration</a></span> &&<i>other</i>)</h3> <p>Move-copy constructor.</p><!-- @@@QXmlStreamNamespaceDeclaration --> <!-- $$$QXmlStreamNamespaceDeclaration$$$QXmlStreamNamespaceDeclarationconstQString&constQString& --> <h3 class="fn" id="QXmlStreamNamespaceDeclaration-3"><a name="QXmlStreamNamespaceDeclaration-3"></a>QXmlStreamNamespaceDeclaration::<span class="name">QXmlStreamNamespaceDeclaration</span>(const <span class="type"><a href="qstring.html">QString</a></span> &<i>prefix</i>, const <span class="type"><a href="qstring.html">QString</a></span> &<i>namespaceUri</i>)</h3> <p>Creates a namespace declaration with <i>prefix</i> and <i>namespaceUri</i>.</p> <p>This function was introduced in Qt 4.4.</p> <!-- @@@QXmlStreamNamespaceDeclaration --> <!-- $$$~QXmlStreamNamespaceDeclaration[overload1]$$$~QXmlStreamNamespaceDeclaration --> <h3 class="fn" id="dtor.QXmlStreamNamespaceDeclaration"><a name="dtor.QXmlStreamNamespaceDeclaration"></a>QXmlStreamNamespaceDeclaration::<span class="name">~QXmlStreamNamespaceDeclaration</span>()</h3> <p>Destructs this namespace declaration.</p> <!-- @@@~QXmlStreamNamespaceDeclaration --> <!-- $$$namespaceUri[overload1]$$$namespaceUri --> <h3 class="fn" id="namespaceUri"><a name="namespaceUri"></a><span class="type"><a href="qstringref.html">QStringRef</a></span> QXmlStreamNamespaceDeclaration::<span class="name">namespaceUri</span>() const</h3> <p>Returns the namespaceUri.</p> <!-- @@@namespaceUri --> <!-- $$$prefix[overload1]$$$prefix --> <h3 class="fn" id="prefix"><a name="prefix"></a><span class="type"><a href="qstringref.html">QStringRef</a></span> QXmlStreamNamespaceDeclaration::<span class="name">prefix</span>() const</h3> <p>Returns the prefix.</p> <!-- @@@prefix --> <!-- $$$operator!=[overload1]$$$operator!=constQXmlStreamNamespaceDeclaration& --> <h3 class="fn" id="operator-not-eq"><a name="operator-not-eq"></a><span class="type">bool</span> QXmlStreamNamespaceDeclaration::<span class="name">operator!=</span>(const <span class="type"><a href="qxmlstreamnamespacedeclaration.html#QXmlStreamNamespaceDeclaration">QXmlStreamNamespaceDeclaration</a></span> &<i>other</i>) const</h3> <p>Compares this namespace declaration with <i>other</i> and returns <code>true</code> if they are not equal; otherwise returns <code>false</code>.</p> <!-- @@@operator!= --> <!-- $$$operator=[overload1]$$$operator=QXmlStreamNamespaceDeclaration&& --> <h3 class="fn" id="operator-eq"><a name="operator-eq"></a><span class="type"><a href="qxmlstreamnamespacedeclaration.html#QXmlStreamNamespaceDeclaration">QXmlStreamNamespaceDeclaration</a></span> &QXmlStreamNamespaceDeclaration::<span class="name">operator=</span>(<span class="type"><a href="qxmlstreamnamespacedeclaration.html#QXmlStreamNamespaceDeclaration">QXmlStreamNamespaceDeclaration</a></span> &&<i>other</i>)</h3> <p>Move-assignment operator.</p><!-- @@@operator= --> <!-- $$$operator=$$$operator=constQXmlStreamNamespaceDeclaration& --> <h3 class="fn" id="operator-eq-1"><a name="operator-eq-1"></a><span class="type"><a href="qxmlstreamnamespacedeclaration.html#QXmlStreamNamespaceDeclaration">QXmlStreamNamespaceDeclaration</a></span> &QXmlStreamNamespaceDeclaration::<span class="name">operator=</span>(const <span class="type"><a href="qxmlstreamnamespacedeclaration.html#QXmlStreamNamespaceDeclaration">QXmlStreamNamespaceDeclaration</a></span> &<i>other</i>)</h3> <p>Assigns <i>other</i> to this namespace declaration.</p> <!-- @@@operator= --> <!-- $$$operator==[overload1]$$$operator==constQXmlStreamNamespaceDeclaration& --> <h3 class="fn" id="operator-eq-eq"><a name="operator-eq-eq"></a><span class="type">bool</span> QXmlStreamNamespaceDeclaration::<span class="name">operator==</span>(const <span class="type"><a href="qxmlstreamnamespacedeclaration.html#QXmlStreamNamespaceDeclaration">QXmlStreamNamespaceDeclaration</a></span> &<i>other</i>) const</h3> <p>Compares this namespace declaration with <i>other</i> and returns <code>true</code> if they are equal; otherwise returns <code>false</code>.</p> <!-- @@@operator== --> </div> <div class="relnonmem"> <h2>Related Non-Members</h2> <!-- $$$QXmlStreamNamespaceDeclarations --> <h3 class="fn" id="QXmlStreamNamespaceDeclarations-typedef"><a name="QXmlStreamNamespaceDeclarations-typedef"></a>typedef <span class="name">QXmlStreamNamespaceDeclarations</span></h3> <p>Synonym for <a href="qvector.html">QVector</a><<a href="qxmlstreamnamespacedeclaration.html">QXmlStreamNamespaceDeclaration</a>>.</p> <!-- @@@QXmlStreamNamespaceDeclarations --> </div> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2019 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>