Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > d5e62c01ae8d1e579463c6a871dd44bf > files > 975

qtbase5-doc-5.12.6-2.mga7.noarch.rpm

<?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>QXmlStreamAttribute 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 >QXmlStreamAttribute</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="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QXmlStreamAttribute Class</h1>
<!-- $$$QXmlStreamAttribute-brief -->
<p>The <a href="qxmlstreamattribute.html">QXmlStreamAttribute</a> class represents a single XML attribute. <a href="#details">More...</a></p>
<!-- @@@QXmlStreamAttribute -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QXmlStreamAttribute&gt;</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="qxmlstreamattribute-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="qxmlstreamattribute.html#QXmlStreamAttribute">QXmlStreamAttribute</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamattribute.html#QXmlStreamAttribute-1">QXmlStreamAttribute</a></b>(const QString &amp;<i>qualifiedName</i>, const QString &amp;<i>value</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamattribute.html#QXmlStreamAttribute-2">QXmlStreamAttribute</a></b>(const QString &amp;<i>namespaceUri</i>, const QString &amp;<i>name</i>, const QString &amp;<i>value</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamattribute.html#QXmlStreamAttribute-3">QXmlStreamAttribute</a></b>(const QXmlStreamAttribute &amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamattribute.html#QXmlStreamAttribute-4">QXmlStreamAttribute</a></b>(QXmlStreamAttribute &amp;&amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamattribute.html#dtor.QXmlStreamAttribute">~QXmlStreamAttribute</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamattribute.html#isDefault">isDefault</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringRef </td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamattribute.html#name">name</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringRef </td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamattribute.html#namespaceUri">namespaceUri</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringRef </td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamattribute.html#prefix">prefix</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringRef </td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamattribute.html#qualifiedName">qualifiedName</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringRef </td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamattribute.html#value">value</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamattribute.html#operator-not-eq">operator!=</a></b>(const QXmlStreamAttribute &amp;<i>other</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QXmlStreamAttribute &amp;</td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamattribute.html#operator-eq">operator=</a></b>(QXmlStreamAttribute &amp;&amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QXmlStreamAttribute &amp;</td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamattribute.html#operator-eq-1">operator=</a></b>(const QXmlStreamAttribute &amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qxmlstreamattribute.html#operator-eq-eq">operator==</a></b>(const QXmlStreamAttribute &amp;<i>other</i>) const</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QXmlStreamAttribute-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qxmlstreamattribute.html">QXmlStreamAttribute</a> class represents a single XML attribute.</p>
<p>An attribute consists of an optionally empty <a href="qxmlstreamattribute.html#namespaceUri">namespaceUri</a>(), a <a href="qxmlstreamattribute.html#name">name</a>(), a <a href="qxmlstreamattribute.html#value">value</a>(), and an <a href="qxmlstreamattribute.html#isDefault">isDefault</a>() attribute.</p>
<p>The raw XML attribute name is returned as <a href="qxmlstreamattribute.html#qualifiedName">qualifiedName</a>().</p>
</div>
<!-- @@@QXmlStreamAttribute -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QXmlStreamAttribute[overload1]$$$QXmlStreamAttribute -->
<h3 class="fn" id="QXmlStreamAttribute"><a name="QXmlStreamAttribute"></a>QXmlStreamAttribute::<span class="name">QXmlStreamAttribute</span>()</h3>
<p>Creates an empty attribute.</p>
<!-- @@@QXmlStreamAttribute -->
<!-- $$$QXmlStreamAttribute$$$QXmlStreamAttributeconstQString&constQString& -->
<h3 class="fn" id="QXmlStreamAttribute-1"><a name="QXmlStreamAttribute-1"></a>QXmlStreamAttribute::<span class="name">QXmlStreamAttribute</span>(const <span class="type"><a href="qstring.html">QString</a></span> &amp;<i>qualifiedName</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp;<i>value</i>)</h3>
<p>Constructs an attribute with qualified name <i>qualifiedName</i> and value <i>value</i>.</p>
<!-- @@@QXmlStreamAttribute -->
<!-- $$$QXmlStreamAttribute$$$QXmlStreamAttributeconstQString&constQString&constQString& -->
<h3 class="fn" id="QXmlStreamAttribute-2"><a name="QXmlStreamAttribute-2"></a>QXmlStreamAttribute::<span class="name">QXmlStreamAttribute</span>(const <span class="type"><a href="qstring.html">QString</a></span> &amp;<i>namespaceUri</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp;<i>name</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp;<i>value</i>)</h3>
<p>Constructs an attribute in the namespace described with <i>namespaceUri</i> with <i>name</i> and value <i>value</i>.</p>
<!-- @@@QXmlStreamAttribute -->
<!-- $$$QXmlStreamAttribute$$$QXmlStreamAttributeconstQXmlStreamAttribute& -->
<h3 class="fn" id="QXmlStreamAttribute-3"><a name="QXmlStreamAttribute-3"></a>QXmlStreamAttribute::<span class="name">QXmlStreamAttribute</span>(const <span class="type"><a href="qxmlstreamattribute.html#QXmlStreamAttribute">QXmlStreamAttribute</a></span> &amp;<i>other</i>)</h3>
<p>Creates a copy of <i>other</i>.</p>
<!-- @@@QXmlStreamAttribute -->
<!-- $$$QXmlStreamAttribute$$$QXmlStreamAttributeQXmlStreamAttribute&& -->
<h3 class="fn" id="QXmlStreamAttribute-4"><a name="QXmlStreamAttribute-4"></a>QXmlStreamAttribute::<span class="name">QXmlStreamAttribute</span>(<span class="type"><a href="qxmlstreamattribute.html#QXmlStreamAttribute">QXmlStreamAttribute</a></span> &amp;&amp;<i>other</i>)</h3>
<p>Move-copy constructor.</p><!-- @@@QXmlStreamAttribute -->
<!-- $$$~QXmlStreamAttribute[overload1]$$$~QXmlStreamAttribute -->
<h3 class="fn" id="dtor.QXmlStreamAttribute"><a name="dtor.QXmlStreamAttribute"></a>QXmlStreamAttribute::<span class="name">~QXmlStreamAttribute</span>()</h3>
<p>Destructs an attribute.</p>
<!-- @@@~QXmlStreamAttribute -->
<!-- $$$isDefault[overload1]$$$isDefault -->
<h3 class="fn" id="isDefault"><a name="isDefault"></a><span class="type">bool</span> QXmlStreamAttribute::<span class="name">isDefault</span>() const</h3>
<p>Returns <code>true</code> if the parser added this attribute with a default value following an ATTLIST declaration in the DTD; otherwise returns <code>false</code>.</p>
<!-- @@@isDefault -->
<!-- $$$name[overload1]$$$name -->
<h3 class="fn" id="name"><a name="name"></a><span class="type"><a href="qstringref.html">QStringRef</a></span> QXmlStreamAttribute::<span class="name">name</span>() const</h3>
<p>Returns the attribute's local name.</p>
<!-- @@@name -->
<!-- $$$namespaceUri[overload1]$$$namespaceUri -->
<h3 class="fn" id="namespaceUri"><a name="namespaceUri"></a><span class="type"><a href="qstringref.html">QStringRef</a></span> QXmlStreamAttribute::<span class="name">namespaceUri</span>() const</h3>
<p>Returns the attribute's resolved namespaceUri, or an empty string reference if the attribute does not have a defined namespace.</p>
<!-- @@@namespaceUri -->
<!-- $$$prefix[overload1]$$$prefix -->
<h3 class="fn" id="prefix"><a name="prefix"></a><span class="type"><a href="qstringref.html">QStringRef</a></span> QXmlStreamAttribute::<span class="name">prefix</span>() const</h3>
<p>Returns the attribute's namespace prefix.</p>
<p>This function was introduced in  Qt 4.4.</p>
<p><b>See also </b><a href="qxmlstreamattribute.html#name">name</a>() and <a href="qxmlstreamattribute.html#qualifiedName">qualifiedName</a>().</p>
<!-- @@@prefix -->
<!-- $$$qualifiedName[overload1]$$$qualifiedName -->
<h3 class="fn" id="qualifiedName"><a name="qualifiedName"></a><span class="type"><a href="qstringref.html">QStringRef</a></span> QXmlStreamAttribute::<span class="name">qualifiedName</span>() const</h3>
<p>Returns the attribute's qualified name.</p>
<p>A qualified name is the raw name of an attribute in the XML data. It consists of the namespace <a href="qxmlstreamattribute.html#prefix">prefix</a>(), followed by colon, followed by the attribute's local <a href="qxmlstreamattribute.html#name">name</a>(). Since the namespace prefix is not unique (the same prefix can point to different namespaces and different prefixes can point to the same namespace), you shouldn't use qualifiedName(), but the resolved <a href="qxmlstreamattribute.html#namespaceUri">namespaceUri</a>() and the attribute's local <a href="qxmlstreamattribute.html#name">name</a>().</p>
<!-- @@@qualifiedName -->
<!-- $$$value[overload1]$$$value -->
<h3 class="fn" id="value"><a name="value"></a><span class="type"><a href="qstringref.html">QStringRef</a></span> QXmlStreamAttribute::<span class="name">value</span>() const</h3>
<p>Returns the attribute's value.</p>
<!-- @@@value -->
<!-- $$$operator!=[overload1]$$$operator!=constQXmlStreamAttribute& -->
<h3 class="fn" id="operator-not-eq"><a name="operator-not-eq"></a><span class="type">bool</span> QXmlStreamAttribute::<span class="name">operator!=</span>(const <span class="type"><a href="qxmlstreamattribute.html#QXmlStreamAttribute">QXmlStreamAttribute</a></span> &amp;<i>other</i>) const</h3>
<p>Compares this attribute with <i>other</i> and returns <code>true</code> if they are not equal; otherwise returns <code>false</code>.</p>
<!-- @@@operator!= -->
<!-- $$$operator=[overload1]$$$operator=QXmlStreamAttribute&& -->
<h3 class="fn" id="operator-eq"><a name="operator-eq"></a><span class="type"><a href="qxmlstreamattribute.html#QXmlStreamAttribute">QXmlStreamAttribute</a></span> &amp;QXmlStreamAttribute::<span class="name">operator=</span>(<span class="type"><a href="qxmlstreamattribute.html#QXmlStreamAttribute">QXmlStreamAttribute</a></span> &amp;&amp;<i>other</i>)</h3>
<p>Move-assignment operator.</p><!-- @@@operator= -->
<!-- $$$operator=$$$operator=constQXmlStreamAttribute& -->
<h3 class="fn" id="operator-eq-1"><a name="operator-eq-1"></a><span class="type"><a href="qxmlstreamattribute.html#QXmlStreamAttribute">QXmlStreamAttribute</a></span> &amp;QXmlStreamAttribute::<span class="name">operator=</span>(const <span class="type"><a href="qxmlstreamattribute.html#QXmlStreamAttribute">QXmlStreamAttribute</a></span> &amp;<i>other</i>)</h3>
<p>Assigns <i>other</i> to this attribute.</p>
<!-- @@@operator= -->
<!-- $$$operator==[overload1]$$$operator==constQXmlStreamAttribute& -->
<h3 class="fn" id="operator-eq-eq"><a name="operator-eq-eq"></a><span class="type">bool</span> QXmlStreamAttribute::<span class="name">operator==</span>(const <span class="type"><a href="qxmlstreamattribute.html#QXmlStreamAttribute">QXmlStreamAttribute</a></span> &amp;<i>other</i>) const</h3>
<p>Compares this attribute with <i>other</i> and returns <code>true</code> if they are equal; otherwise returns <code>false</code>.</p>
<!-- @@@operator== -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</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>