Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-updates > by-pkgid > 768f7d9f703884aa2562bf0a651086df > files > 846

qtbase5-doc-5.9.4-1.1.mga6.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" />
<!-- quuid.cpp -->
  <title>QUuid Class | Qt Core 5.9</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.9</td><td ><a href="qtcore-index.html">Qt Core</a></td><td ><a href="qtcore-module.html">C++ Classes</a></td><td >QUuid</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.4 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-types">Public Types</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</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">QUuid Class</h1>
<!-- $$$QUuid-brief -->
<p>The <a href="quuid.html">QUuid</a> class stores a Universally Unique Identifier (UUID). <a href="#details">More...</a></p>
<!-- @@@QUuid -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QUuid&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += core</td></tr></table></div><ul>
<li><a href="quuid-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-types"></a>
<h2 id="public-types">Public Types</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#Variant-enum">Variant</a></b> { VarUnknown, NCS, DCE, Microsoft, Reserved }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#Version-enum">Version</a></b> { VerUnknown, Time, EmbeddedPOSIX, Name, ..., Sha1 }</td></tr>
</table></div>
<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="quuid.html#QUuid">QUuid</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#QUuid-1">QUuid</a></b>(uint <i>l</i>, ushort <i>w1</i>, ushort <i>w2</i>, uchar <i>b1</i>, uchar <i>b2</i>, uchar <i>b3</i>, uchar <i>b4</i>, uchar <i>b5</i>, uchar <i>b6</i>, uchar <i>b7</i>, uchar <i>b8</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#QUuid-2">QUuid</a></b>(const QString &amp;<i>text</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#QUuid-4">QUuid</a></b>(const QByteArray &amp;<i>text</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#QUuid-5">QUuid</a></b>(const GUID &amp;<i>guid</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#isNull">isNull</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QByteArray </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#toByteArray">toByteArray</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> CFUUIDRef </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#toCFUUID">toCFUUID</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> NSUUID *</td><td class="memItemRight bottomAlign"><b><a href="quuid.html#toNSUUID">toNSUUID</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QByteArray </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#toRfc4122">toRfc4122</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#toString">toString</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QUuid::Variant </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#variant">variant</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QUuid::Version </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#version">version</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#operator-GUID">operator GUID</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#operator-not-eq">operator!=</a></b>(const QUuid &amp;<i>other</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#operator-not-eq-1">operator!=</a></b>(const GUID &amp;<i>guid</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#operator-lt">operator&lt;</a></b>(const QUuid &amp;<i>other</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QUuid &amp;</td><td class="memItemRight bottomAlign"><b><a href="quuid.html#operator-eq">operator=</a></b>(const GUID &amp;<i>guid</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#operator-eq-eq">operator==</a></b>(const QUuid &amp;<i>other</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#operator-eq-eq-1">operator==</a></b>(const GUID &amp;<i>guid</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#operator-gt">operator&gt;</a></b>(const QUuid &amp;<i>other</i>) const</td></tr>
</table></div>
<a name="static-public-members"></a>
<h2 id="static-public-members">Static Public Members</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QUuid </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#createUuid">createUuid</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QUuid </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#createUuidV3">createUuidV3</a></b>(const QUuid &amp;<i>ns</i>, const QByteArray &amp;<i>baseData</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QUuid </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#createUuidV3-1">createUuidV3</a></b>(const QUuid &amp;<i>ns</i>, const QString &amp;<i>baseData</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QUuid </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#createUuidV5">createUuidV5</a></b>(const QUuid &amp;<i>ns</i>, const QByteArray &amp;<i>baseData</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QUuid </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#createUuidV5-1">createUuidV5</a></b>(const QUuid &amp;<i>ns</i>, const QString &amp;<i>baseData</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QUuid </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#fromCFUUID">fromCFUUID</a></b>(CFUUIDRef <i>uuid</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QUuid </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#fromNSUUID">fromNSUUID</a></b>(const NSUUID *<i>uuid</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QUuid </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#fromRfc4122">fromRfc4122</a></b>(const QByteArray &amp;<i>bytes</i>)</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"> uint </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#qHash">qHash</a></b>(const QUuid &amp;<i>uuid</i>, uint <i>seed</i> = 0)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDataStream &amp;</td><td class="memItemRight bottomAlign"><b><a href="quuid.html#operator-lt-lt">operator&lt;&lt;</a></b>(QDataStream &amp;<i>s</i>, const QUuid &amp;<i>id</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#operator-lt-lt-1">operator&lt;&lt;</a></b>(QDebug <i>dbg</i>, const QUuid &amp;<i>id</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#operator-lt-eq">operator&lt;=</a></b>(const QUuid &amp;<i>lhs</i>, const QUuid &amp;<i>rhs</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="quuid.html#operator-gt-eq">operator&gt;=</a></b>(const QUuid &amp;<i>lhs</i>, const QUuid &amp;<i>rhs</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDataStream &amp;</td><td class="memItemRight bottomAlign"><b><a href="quuid.html#operator-gt-gt">operator&gt;&gt;</a></b>(QDataStream &amp;<i>s</i>, QUuid &amp;<i>id</i>)</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QUuid-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="quuid.html">QUuid</a> class stores a Universally Unique Identifier (UUID).</p>
<p>Using <i>U</i>niversally <i>U</i>nique <i>ID</i>entifiers (UUID) is a standard way to uniquely identify entities in a distributed computing environment. A UUID is a 16-byte (128-bit) number generated by some algorithm that is meant to guarantee that the UUID will be unique in the distributed computing environment where it is used. The acronym GUID is often used instead, <i>G</i>lobally <i>U</i>nique <i>ID</i>entifiers, but it refers to the same thing.</p>
<a name="variant-field"></a><p>Actually, the GUID is one <i>variant</i> of UUID. Multiple variants are in use. Each UUID contains a bit field that specifies which type (variant) of UUID it is. Call <a href="quuid.html#variant">variant</a>() to discover which type of UUID an instance of <a href="quuid.html">QUuid</a> contains. It extracts the three most significant bits of byte 8 of the 16 bytes. In <a href="quuid.html">QUuid</a>, byte 8 is <code>QUuid::data4[0]</code>. If you create instances of <a href="quuid.html">QUuid</a> using the constructor that accepts all the numeric values as parameters, use the following table to set the three most significant bits of parameter <code>b1</code>, which becomes <code>QUuid::data4[0]</code> and contains the variant field in its three most significant bits. In the table, 'x' means <i>don't care</i>.</p>
<div class="table"><table class="generic">
 <thead><tr class="qt-style"><th >msb0</th><th >msb1</th><th >msb2</th><th >Variant</th></tr></thead>
<tr valign="top" class="odd"><td >0</td><td >x</td><td >x</td><td >NCS (Network Computing System)</td></tr>
<tr valign="top" class="even"><td >1</td><td >0</td><td >x</td><td >DCE (Distributed Computing Environment)</td></tr>
<tr valign="top" class="odd"><td >1</td><td >1</td><td >0</td><td >Microsoft (GUID)</td></tr>
<tr valign="top" class="even"><td >1</td><td >1</td><td >1</td><td >Reserved for future expansion</td></tr>
</table></div>
<a name="version-field"></a><p>If <a href="quuid.html#variant">variant</a>() returns <a href="quuid.html#Variant-enum">QUuid::DCE</a>, the UUID also contains a <i>version</i> field in the four most significant bits of <code>QUuid::data3</code>, and you can call <a href="quuid.html#version">version</a>() to discover which version your <a href="quuid.html">QUuid</a> contains. If you create instances of <a href="quuid.html">QUuid</a> using the constructor that accepts all the numeric values as parameters, use the following table to set the four most significant bits of parameter <code>w2</code>, which becomes <code>QUuid::data3</code> and contains the version field in its four most significant bits.</p>
<div class="table"><table class="generic">
 <thead><tr class="qt-style"><th >msb0</th><th >msb1</th><th >msb2</th><th >msb3</th><th >Version</th></tr></thead>
<tr valign="top" class="odd"><td >0</td><td >0</td><td >0</td><td >1</td><td >Time</td></tr>
<tr valign="top" class="even"><td >0</td><td >0</td><td >1</td><td >0</td><td >Embedded POSIX</td></tr>
<tr valign="top" class="odd"><td >0</td><td >0</td><td >1</td><td >1</td><td >Md5(Name)</td></tr>
<tr valign="top" class="even"><td >0</td><td >1</td><td >0</td><td >0</td><td >Random</td></tr>
<tr valign="top" class="odd"><td >0</td><td >1</td><td >0</td><td >1</td><td >Sha1</td></tr>
</table></div>
<p>The field layouts for the DCE versions listed in the table above are specified in the <a href="http://www.ietf.org/rfc/rfc4122.txt">Network Working Group UUID Specification</a>.</p>
<p>Most platforms provide a tool for generating new UUIDs, e.g&#x2e; <code>uuidgen</code> and <code>guidgen</code>. You can also use <a href="quuid.html#createUuid">createUuid</a>(). UUIDs generated by <a href="quuid.html#createUuid">createUuid</a>() are of the random type. Their <a href="quuid.html#Version-enum">QUuid::Version</a> bits are set to <a href="quuid.html#Version-enum">QUuid::Random</a>, and their <a href="quuid.html#Variant-enum">QUuid::Variant</a> bits are set to <a href="quuid.html#Variant-enum">QUuid::DCE</a>. The rest of the UUID is composed of random numbers. Theoretically, this means there is a small chance that a UUID generated by <a href="quuid.html#createUuid">createUuid</a>() will not be unique. But it is <a href="http://en.wikipedia.org/wiki/Universally_Unique_Identifier#Random_UUID_probability_of_duplicates">a <i>very</i> small chance</a>.</p>
<p>UUIDs can be constructed from numeric values or from strings, or using the static <a href="quuid.html#createUuid">createUuid</a>() function. They can be converted to a string with <a href="quuid.html#toString">toString</a>(). UUIDs have a <a href="quuid.html#variant">variant</a>() and a <a href="quuid.html#version">version</a>(), and null UUIDs return true from <a href="quuid.html#isNull">isNull</a>().</p>
</div>
<!-- @@@QUuid -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$Variant$$$VarUnknown$$$NCS$$$DCE$$$Microsoft$$$Reserved -->
<h3 class="fn" id="Variant-enum"><a name="Variant-enum"></a>enum QUuid::<span class="name">Variant</span></h3>
<p>This enum defines the values used in the <a href="quuid.html#variant-field">variant field</a> of the UUID. The value in the variant field determines the layout of the 128-bit value.</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>QUuid::VarUnknown</code></td><td class="topAlign tblval"><code>-1</code></td><td class="topAlign">Variant is unknown</td></tr>
<tr><td class="topAlign"><code>QUuid::NCS</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">Reserved for NCS (Network Computing System) backward compatibility</td></tr>
<tr><td class="topAlign"><code>QUuid::DCE</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">Distributed Computing Environment, the scheme used by <a href="quuid.html">QUuid</a></td></tr>
<tr><td class="topAlign"><code>QUuid::Microsoft</code></td><td class="topAlign tblval"><code>6</code></td><td class="topAlign">Reserved for Microsoft backward compatibility (GUID)</td></tr>
<tr><td class="topAlign"><code>QUuid::Reserved</code></td><td class="topAlign tblval"><code>7</code></td><td class="topAlign">Reserved for future definition</td></tr>
</table></div>
<!-- @@@Variant -->
<!-- $$$Version$$$VerUnknown$$$Time$$$EmbeddedPOSIX$$$Md5$$$Name$$$Random$$$Sha1 -->
<h3 class="fn" id="Version-enum"><a name="Version-enum"></a>enum QUuid::<span class="name">Version</span></h3>
<p>This enum defines the values used in the <a href="quuid.html#version-field">version field</a> of the UUID. The version field is meaningful only if the value in the <a href="quuid.html#variant-field">variant field</a> is <a href="quuid.html#Variant-enum">QUuid::DCE</a>.</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>QUuid::VerUnknown</code></td><td class="topAlign tblval"><code>-1</code></td><td class="topAlign">Version is unknown</td></tr>
<tr><td class="topAlign"><code>QUuid::Time</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">Time-based, by using timestamp, clock sequence, and MAC network card address (if available) for the node sections</td></tr>
<tr><td class="topAlign"><code>QUuid::EmbeddedPOSIX</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">DCE Security version, with embedded POSIX UUIDs</td></tr>
<tr><td class="topAlign"><code>QUuid::Name</code></td><td class="topAlign tblval"><code>Md5</code></td><td class="topAlign">Name-based, by using values from a name for all sections</td></tr>
<tr><td class="topAlign"><code>QUuid::Md5</code></td><td class="topAlign tblval"><code>3</code></td><td class="topAlign">Alias for Name</td></tr>
<tr><td class="topAlign"><code>QUuid::Random</code></td><td class="topAlign tblval"><code>4</code></td><td class="topAlign">Random-based, by using random numbers for all sections</td></tr>
<tr><td class="topAlign"><code>QUuid::Sha1</code></td><td class="topAlign tblval"><code>5</code></td><td class="topAlign">&nbsp;</td></tr>
</table></div>
<!-- @@@Version -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QUuid[overload1]$$$QUuid -->
<h3 class="fn" id="QUuid"><a name="QUuid"></a>QUuid::<span class="name">QUuid</span>()</h3>
<p>Creates the null UUID. <a href="quuid.html#toString">toString</a>() will output the null UUID as &quot;{00000000-0000-0000-0000-000000000000}&quot;.</p>
<!-- @@@QUuid -->
<!-- $$$QUuid$$$QUuiduintushortushortucharucharucharucharucharucharucharuchar -->
<h3 class="fn" id="QUuid-1"><a name="QUuid-1"></a>QUuid::<span class="name">QUuid</span>(<span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> <i>l</i>, <span class="type"><a href="qtglobal.html#ushort-typedef">ushort</a></span> <i>w1</i>, <span class="type"><a href="qtglobal.html#ushort-typedef">ushort</a></span> <i>w2</i>, <span class="type"><a href="qtglobal.html#uchar-typedef">uchar</a></span> <i>b1</i>, <span class="type"><a href="qtglobal.html#uchar-typedef">uchar</a></span> <i>b2</i>, <span class="type"><a href="qtglobal.html#uchar-typedef">uchar</a></span> <i>b3</i>, <span class="type"><a href="qtglobal.html#uchar-typedef">uchar</a></span> <i>b4</i>, <span class="type"><a href="qtglobal.html#uchar-typedef">uchar</a></span> <i>b5</i>, <span class="type"><a href="qtglobal.html#uchar-typedef">uchar</a></span> <i>b6</i>, <span class="type"><a href="qtglobal.html#uchar-typedef">uchar</a></span> <i>b7</i>, <span class="type"><a href="qtglobal.html#uchar-typedef">uchar</a></span> <i>b8</i>)</h3>
<p>Creates a UUID with the value specified by the parameters, <i>l</i>, <i>w1</i>, <i>w2</i>, <i>b1</i>, <i>b2</i>, <i>b3</i>, <i>b4</i>, <i>b5</i>, <i>b6</i>, <i>b7</i>, <i>b8</i>.</p>
<p>Example:</p>
<pre class="cpp">

  <span class="comment">// {67C8770B-44F1-410A-AB9A-F9B5446F13EE}</span>
  <span class="type"><a href="quuid.html#QUuid">QUuid</a></span> IID_MyInterface(<span class="number">0x67c8770b</span><span class="operator">,</span> <span class="number">0x44f1</span><span class="operator">,</span> <span class="number">0x410a</span><span class="operator">,</span> <span class="number">0xab</span><span class="operator">,</span> <span class="number">0x9a</span><span class="operator">,</span> <span class="number">0xf9</span><span class="operator">,</span> <span class="number">0xb5</span><span class="operator">,</span> <span class="number">0x44</span><span class="operator">,</span> <span class="number">0x6f</span><span class="operator">,</span> <span class="number">0x13</span><span class="operator">,</span> <span class="number">0xee</span>);

</pre>
<!-- @@@QUuid -->
<!-- $$$QUuid$$$QUuidconstQString& -->
<h3 class="fn" id="QUuid-2"><a name="QUuid-2"></a>QUuid::<span class="name">QUuid</span>(const <span class="type"><a href="qstring.html">QString</a></span> &amp;<i>text</i>)</h3>
<p>Creates a <a href="quuid.html">QUuid</a> object from the string <i>text</i>, which must be formatted as five hex fields separated by '-', e.g&#x2e;, &quot;{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}&quot; where 'x' is a hex digit. The curly braces shown here are optional, but it is normal to include them. If the conversion fails, a null UUID is created. See <a href="quuid.html#toString">toString</a>() for an explanation of how the five hex fields map to the public data members in <a href="quuid.html">QUuid</a>.</p>
<p><b>See also </b><a href="quuid.html#toString">toString</a>() and <a href="quuid.html#QUuid">QUuid</a>().</p>
<!-- @@@QUuid -->
<!-- $$$QUuid$$$QUuidconstQByteArray& -->
<h3 class="fn" id="QUuid-4"><a name="QUuid-4"></a>QUuid::<span class="name">QUuid</span>(const <span class="type"><a href="qbytearray.html">QByteArray</a></span> &amp;<i>text</i>)</h3>
<p>Creates a <a href="quuid.html">QUuid</a> object from the <a href="qbytearray.html">QByteArray</a> <i>text</i>, which must be formatted as five hex fields separated by '-', e.g&#x2e;, &quot;{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}&quot; where 'x' is a hex digit. The curly braces shown here are optional, but it is normal to include them. If the conversion fails, a null UUID is created. See <a href="quuid.html#toByteArray">toByteArray</a>() for an explanation of how the five hex fields map to the public data members in <a href="quuid.html">QUuid</a>.</p>
<p>This function was introduced in  Qt 4.8.</p>
<p><b>See also </b><a href="quuid.html#toByteArray">toByteArray</a>() and <a href="quuid.html#QUuid">QUuid</a>().</p>
<!-- @@@QUuid -->
<!-- $$$QUuid$$$QUuidconstGUID& -->
<h3 class="fn" id="QUuid-5"><a name="QUuid-5"></a>QUuid::<span class="name">QUuid</span>(const <span class="type">GUID</span> &amp;<i>guid</i>)</h3>
<p>Casts a Windows <i>guid</i> to a Qt <a href="quuid.html">QUuid</a>.</p>
<p><b>Warning:</b> This function is only for Windows platforms.</p>
<!-- @@@QUuid -->
<!-- $$$createUuid[overload1]$$$createUuid -->
<h3 class="fn" id="createUuid"><a name="createUuid"></a><code>[static] </code><span class="type"><a href="quuid.html#QUuid">QUuid</a></span> QUuid::<span class="name">createUuid</span>()</h3>
<p>On any platform other than Windows, this function returns a new UUID with variant <a href="quuid.html#Variant-enum">QUuid::DCE</a> and version <a href="quuid.html#Version-enum">QUuid::Random</a>. If the /dev/urandom device exists, then the numbers used to construct the UUID will be of cryptographic quality, which will make the UUID unique. Otherwise, the numbers of the UUID will be obtained from the local pseudo-random number generator (<a href="qtglobal.html#qrand">qrand</a>(), which is seeded by <a href="qtglobal.html#qsrand">qsrand</a>()) which is usually not of cryptograhic quality, which means that the UUID can't be guaranteed to be unique.</p>
<p>On a Windows platform, a GUID is generated, which almost certainly <i>will</i> be unique, on this or any other system, networked or not.</p>
<p><b>See also </b><a href="quuid.html#variant">variant</a>() and <a href="quuid.html#version">version</a>().</p>
<!-- @@@createUuid -->
<!-- $$$createUuidV3[overload1]$$$createUuidV3constQUuid&constQByteArray& -->
<h3 class="fn" id="createUuidV3"><a name="createUuidV3"></a><code>[static] </code><span class="type"><a href="quuid.html#QUuid">QUuid</a></span> QUuid::<span class="name">createUuidV3</span>(const <span class="type"><a href="quuid.html#QUuid">QUuid</a></span> &amp;<i>ns</i>, const <span class="type"><a href="qbytearray.html">QByteArray</a></span> &amp;<i>baseData</i>)</h3>
<p>This function returns a new UUID with variant <a href="quuid.html#Variant-enum">QUuid::DCE</a> and version <a href="quuid.html#Version-enum">QUuid::Md5</a>. <i>ns</i> is the namespace and <i>baseData</i> is the basic data as described by RFC 4122.</p>
<p>This function was introduced in  Qt 5.0.</p>
<p><b>See also </b><a href="quuid.html#variant">variant</a>(), <a href="quuid.html#version">version</a>(), and <a href="quuid.html#createUuidV5">createUuidV5</a>().</p>
<!-- @@@createUuidV3 -->
<!-- $$$createUuidV3$$$createUuidV3constQUuid&constQString& -->
<h3 class="fn" id="createUuidV3-1"><a name="createUuidV3-1"></a><code>[static] </code><span class="type"><a href="quuid.html#QUuid">QUuid</a></span> QUuid::<span class="name">createUuidV3</span>(const <span class="type"><a href="quuid.html#QUuid">QUuid</a></span> &amp;<i>ns</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp;<i>baseData</i>)</h3>
<p>This function returns a new UUID with variant <a href="quuid.html#Variant-enum">QUuid::DCE</a> and version <a href="quuid.html#Version-enum">QUuid::Md5</a>. <i>ns</i> is the namespace and <i>baseData</i> is the basic data as described by RFC 4122.</p>
<p>This function was introduced in  Qt 5.0.</p>
<p><b>See also </b><a href="quuid.html#variant">variant</a>(), <a href="quuid.html#version">version</a>(), and <a href="quuid.html#createUuidV5">createUuidV5</a>().</p>
<!-- @@@createUuidV3 -->
<!-- $$$createUuidV5[overload1]$$$createUuidV5constQUuid&constQByteArray& -->
<h3 class="fn" id="createUuidV5"><a name="createUuidV5"></a><code>[static] </code><span class="type"><a href="quuid.html#QUuid">QUuid</a></span> QUuid::<span class="name">createUuidV5</span>(const <span class="type"><a href="quuid.html#QUuid">QUuid</a></span> &amp;<i>ns</i>, const <span class="type"><a href="qbytearray.html">QByteArray</a></span> &amp;<i>baseData</i>)</h3>
<p>This function returns a new UUID with variant <a href="quuid.html#Variant-enum">QUuid::DCE</a> and version <a href="quuid.html#Version-enum">QUuid::Sha1</a>. <i>ns</i> is the namespace and <i>baseData</i> is the basic data as described by RFC 4122.</p>
<p>This function was introduced in  Qt 5.0.</p>
<p><b>See also </b><a href="quuid.html#variant">variant</a>(), <a href="quuid.html#version">version</a>(), and <a href="quuid.html#createUuidV3">createUuidV3</a>().</p>
<!-- @@@createUuidV5 -->
<!-- $$$createUuidV5$$$createUuidV5constQUuid&constQString& -->
<h3 class="fn" id="createUuidV5-1"><a name="createUuidV5-1"></a><code>[static] </code><span class="type"><a href="quuid.html#QUuid">QUuid</a></span> QUuid::<span class="name">createUuidV5</span>(const <span class="type"><a href="quuid.html#QUuid">QUuid</a></span> &amp;<i>ns</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp;<i>baseData</i>)</h3>
<p>This function returns a new UUID with variant <a href="quuid.html#Variant-enum">QUuid::DCE</a> and version <a href="quuid.html#Version-enum">QUuid::Sha1</a>. <i>ns</i> is the namespace and <i>baseData</i> is the basic data as described by RFC 4122.</p>
<p>This function was introduced in  Qt 5.0.</p>
<p><b>See also </b><a href="quuid.html#variant">variant</a>(), <a href="quuid.html#version">version</a>(), and <a href="quuid.html#createUuidV3">createUuidV3</a>().</p>
<!-- @@@createUuidV5 -->
<!-- $$$fromCFUUID[overload1]$$$fromCFUUIDCFUUIDRef -->
<h3 class="fn" id="fromCFUUID"><a name="fromCFUUID"></a><code>[static] </code><span class="type"><a href="quuid.html#QUuid">QUuid</a></span> QUuid::<span class="name">fromCFUUID</span>(<span class="type">CFUUIDRef</span> <i>uuid</i>)</h3>
<p>Constructs a new <a href="quuid.html">QUuid</a> containing a copy of the <i>uuid</i> CFUUID.</p>
<p><b>Note: </b>this function is only available on Apple platforms.</p><p>This function was introduced in  Qt 5.7.</p>
<!-- @@@fromCFUUID -->
<!-- $$$fromNSUUID[overload1]$$$fromNSUUIDconstNSUUID* -->
<h3 class="fn" id="fromNSUUID"><a name="fromNSUUID"></a><code>[static] </code><span class="type"><a href="quuid.html#QUuid">QUuid</a></span> QUuid::<span class="name">fromNSUUID</span>(const <span class="type">NSUUID</span> *<i>uuid</i>)</h3>
<p>Constructs a new <a href="quuid.html">QUuid</a> containing a copy of the <i>uuid</i> NSUUID.</p>
<p><b>Note: </b>this function is only available on Apple platforms.</p><p>This function was introduced in  Qt 5.7.</p>
<!-- @@@fromNSUUID -->
<!-- $$$fromRfc4122[overload1]$$$fromRfc4122constQByteArray& -->
<h3 class="fn" id="fromRfc4122"><a name="fromRfc4122"></a><code>[static] </code><span class="type"><a href="quuid.html#QUuid">QUuid</a></span> QUuid::<span class="name">fromRfc4122</span>(const <span class="type"><a href="qbytearray.html">QByteArray</a></span> &amp;<i>bytes</i>)</h3>
<p>Creates a <a href="quuid.html">QUuid</a> object from the binary representation of the UUID, as specified by RFC 4122 section 4.1&#x2e;2&#x2e; See <a href="quuid.html#toRfc4122">toRfc4122</a>() for a further explanation of the order of <i>bytes</i> required.</p>
<p>The byte array accepted is NOT a human readable format.</p>
<p>If the conversion fails, a null UUID is created.</p>
<p>This function was introduced in  Qt 4.8.</p>
<p><b>See also </b><a href="quuid.html#toRfc4122">toRfc4122</a>() and <a href="quuid.html#QUuid">QUuid</a>().</p>
<!-- @@@fromRfc4122 -->
<!-- $$$isNull[overload1]$$$isNull -->
<h3 class="fn" id="isNull"><a name="isNull"></a><span class="type">bool</span> QUuid::<span class="name">isNull</span>() const</h3>
<p>Returns <code>true</code> if this is the null UUID {00000000-0000-0000-0000-000000000000}; otherwise returns <code>false</code>.</p>
<!-- @@@isNull -->
<!-- $$$toByteArray[overload1]$$$toByteArray -->
<h3 class="fn" id="toByteArray"><a name="toByteArray"></a><span class="type"><a href="qbytearray.html">QByteArray</a></span> QUuid::<span class="name">toByteArray</span>() const</h3>
<p>Returns the binary representation of this <a href="quuid.html">QUuid</a>. The byte array is formatted as five hex fields separated by '-' and enclosed in curly braces, i.e&#x2e;, &quot;{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}&quot; where 'x' is a hex digit. From left to right, the five hex fields are obtained from the four public data members in <a href="quuid.html">QUuid</a> as follows:</p>
<div class="table"><table class="generic">
 <thead><tr class="qt-style"><th >Field #</th><th >Source</th></tr></thead>
<tr valign="top" class="odd"><td >1</td><td >data1</td></tr>
<tr valign="top" class="even"><td >2</td><td >data2</td></tr>
<tr valign="top" class="odd"><td >3</td><td >data3</td></tr>
<tr valign="top" class="even"><td >4</td><td >data4[0] .. data4[1]</td></tr>
<tr valign="top" class="odd"><td >5</td><td >data4[2] .. data4[7]</td></tr>
</table></div>
<p>This function was introduced in  Qt 4.8.</p>
<!-- @@@toByteArray -->
<!-- $$$toCFUUID[overload1]$$$toCFUUID -->
<h3 class="fn" id="toCFUUID"><a name="toCFUUID"></a><span class="type">CFUUIDRef</span> QUuid::<span class="name">toCFUUID</span>() const</h3>
<p>Creates a CFUUID from a <a href="quuid.html">QUuid</a>. The caller owns the CFUUID and is responsible for releasing it.</p>
<p><b>Note: </b>this function is only available on Apple platforms.</p><p>This function was introduced in  Qt 5.7.</p>
<!-- @@@toCFUUID -->
<!-- $$$toNSUUID[overload1]$$$toNSUUID -->
<h3 class="fn" id="toNSUUID"><a name="toNSUUID"></a><span class="type">NSUUID</span> *QUuid::<span class="name">toNSUUID</span>() const</h3>
<p>Creates a NSUUID from a <a href="quuid.html">QUuid</a>. The NSUUID is autoreleased.</p>
<p><b>Note: </b>this function is only available on Apple platforms.</p><p>This function was introduced in  Qt 5.7.</p>
<!-- @@@toNSUUID -->
<!-- $$$toRfc4122[overload1]$$$toRfc4122 -->
<h3 class="fn" id="toRfc4122"><a name="toRfc4122"></a><span class="type"><a href="qbytearray.html">QByteArray</a></span> QUuid::<span class="name">toRfc4122</span>() const</h3>
<p>Returns the binary representation of this <a href="quuid.html">QUuid</a>. The byte array is in big endian format, and formatted according to RFC 4122, section 4.1&#x2e;2 - &quot;Layout and byte order&quot;.</p>
<p>The order is as follows:</p>
<div class="table"><table class="generic">
 <thead><tr class="qt-style"><th >Field #</th><th >Source</th></tr></thead>
<tr valign="top" class="odd"><td >1</td><td >data1</td></tr>
<tr valign="top" class="even"><td >2</td><td >data2</td></tr>
<tr valign="top" class="odd"><td >3</td><td >data3</td></tr>
<tr valign="top" class="even"><td >4</td><td >data4[0] .. data4[7]</td></tr>
</table></div>
<p>This function was introduced in  Qt 4.8.</p>
<!-- @@@toRfc4122 -->
<!-- $$$toString[overload1]$$$toString -->
<h3 class="fn" id="toString"><a name="toString"></a><span class="type"><a href="qstring.html">QString</a></span> QUuid::<span class="name">toString</span>() const</h3>
<p>Returns the string representation of this <a href="quuid.html">QUuid</a>. The string is formatted as five hex fields separated by '-' and enclosed in curly braces, i.e&#x2e;, &quot;{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}&quot; where 'x' is a hex digit. From left to right, the five hex fields are obtained from the four public data members in <a href="quuid.html">QUuid</a> as follows:</p>
<div class="table"><table class="generic">
 <thead><tr class="qt-style"><th >Field #</th><th >Source</th></tr></thead>
<tr valign="top" class="odd"><td >1</td><td >data1</td></tr>
<tr valign="top" class="even"><td >2</td><td >data2</td></tr>
<tr valign="top" class="odd"><td >3</td><td >data3</td></tr>
<tr valign="top" class="even"><td >4</td><td >data4[0] .. data4[1]</td></tr>
<tr valign="top" class="odd"><td >5</td><td >data4[2] .. data4[7]</td></tr>
</table></div>
<!-- @@@toString -->
<!-- $$$variant[overload1]$$$variant -->
<h3 class="fn" id="variant"><a name="variant"></a><span class="type"><a href="quuid.html#Variant-enum">QUuid::Variant</a></span> QUuid::<span class="name">variant</span>() const</h3>
<p>Returns the value in the <a href="quuid.html#variant-field">variant field</a> of the UUID. If the return value is <a href="quuid.html#Variant-enum">QUuid::DCE</a>, call <a href="quuid.html#version">version</a>() to see which layout it uses. The null UUID is considered to be of an unknown variant.</p>
<p><b>See also </b><a href="quuid.html#version">version</a>().</p>
<!-- @@@variant -->
<!-- $$$version[overload1]$$$version -->
<h3 class="fn" id="version"><a name="version"></a><span class="type"><a href="quuid.html#Version-enum">QUuid::Version</a></span> QUuid::<span class="name">version</span>() const</h3>
<p>Returns the <a href="quuid.html#version-field">version field</a> of the UUID, if the UUID's <a href="quuid.html#variant-field">variant field</a> is <a href="quuid.html#Variant-enum">QUuid::DCE</a>. Otherwise it returns <a href="quuid.html#Version-enum">QUuid::VerUnknown</a>.</p>
<p><b>See also </b><a href="quuid.html#variant">variant</a>().</p>
<!-- @@@version -->
<!-- $$$operator GUID[overload1]$$$operator GUID -->
<h3 class="fn" id="operator-GUID"><a name="operator-GUID"></a>QUuid::<span class="name">operator GUID</span>() const</h3>
<p>Returns a Windows GUID from a <a href="quuid.html">QUuid</a>.</p>
<p><b>Warning:</b> This function is only for Windows platforms.</p>
<!-- @@@operator GUID -->
<!-- $$$operator!=[overload1]$$$operator!=constQUuid& -->
<h3 class="fn" id="operator-not-eq"><a name="operator-not-eq"></a><span class="type">bool</span> QUuid::<span class="name">operator!=</span>(const <span class="type"><a href="quuid.html#QUuid">QUuid</a></span> &amp;<i>other</i>) const</h3>
<p>Returns <code>true</code> if this <a href="quuid.html">QUuid</a> and the <i>other</i> <a href="quuid.html">QUuid</a> are different; otherwise returns <code>false</code>.</p>
<!-- @@@operator!= -->
<!-- $$$operator!=$$$operator!=constGUID& -->
<h3 class="fn" id="operator-not-eq-1"><a name="operator-not-eq-1"></a><span class="type">bool</span> QUuid::<span class="name">operator!=</span>(const <span class="type">GUID</span> &amp;<i>guid</i>) const</h3>
<p>Returns <code>true</code> if this UUID is not equal to the Windows GUID <i>guid</i>; otherwise returns <code>false</code>.</p>
<!-- @@@operator!= -->
<!-- $$$operator<[overload1]$$$operator<constQUuid& -->
<h3 class="fn" id="operator-lt"><a name="operator-lt"></a><span class="type">bool</span> QUuid::<span class="name">operator&lt;</span>(const <span class="type"><a href="quuid.html#QUuid">QUuid</a></span> &amp;<i>other</i>) const</h3>
<p>Returns <code>true</code> if this <a href="quuid.html">QUuid</a> has the same <a href="quuid.html#variant-field">variant field</a> as the <i>other</i> <a href="quuid.html">QUuid</a> and is lexicographically <i>before</i> the <i>other</i> <a href="quuid.html">QUuid</a>. If the <i>other</i> <a href="quuid.html">QUuid</a> has a different variant field, the return value is determined by comparing the two <a href="quuid.html#Variant-enum">variants</a>.</p>
<p><b>See also </b><a href="quuid.html#variant">variant</a>().</p>
<!-- @@@operator< -->
<!-- $$$operator=[overload1]$$$operator=constGUID& -->
<h3 class="fn" id="operator-eq"><a name="operator-eq"></a><span class="type"><a href="quuid.html#QUuid">QUuid</a></span> &amp;QUuid::<span class="name">operator=</span>(const <span class="type">GUID</span> &amp;<i>guid</i>)</h3>
<p>Assigns a Windows <i>guid</i> to a Qt <a href="quuid.html">QUuid</a>.</p>
<p><b>Warning:</b> This function is only for Windows platforms.</p>
<!-- @@@operator= -->
<!-- $$$operator==[overload1]$$$operator==constQUuid& -->
<h3 class="fn" id="operator-eq-eq"><a name="operator-eq-eq"></a><span class="type">bool</span> QUuid::<span class="name">operator==</span>(const <span class="type"><a href="quuid.html#QUuid">QUuid</a></span> &amp;<i>other</i>) const</h3>
<p>Returns <code>true</code> if this <a href="quuid.html">QUuid</a> and the <i>other</i> <a href="quuid.html">QUuid</a> are identical; otherwise returns <code>false</code>.</p>
<!-- @@@operator== -->
<!-- $$$operator==$$$operator==constGUID& -->
<h3 class="fn" id="operator-eq-eq-1"><a name="operator-eq-eq-1"></a><span class="type">bool</span> QUuid::<span class="name">operator==</span>(const <span class="type">GUID</span> &amp;<i>guid</i>) const</h3>
<p>Returns <code>true</code> if this UUID is equal to the Windows GUID <i>guid</i>; otherwise returns <code>false</code>.</p>
<!-- @@@operator== -->
<!-- $$$operator>[overload1]$$$operator>constQUuid& -->
<h3 class="fn" id="operator-gt"><a name="operator-gt"></a><span class="type">bool</span> QUuid::<span class="name">operator&gt;</span>(const <span class="type"><a href="quuid.html#QUuid">QUuid</a></span> &amp;<i>other</i>) const</h3>
<p>Returns <code>true</code> if this <a href="quuid.html">QUuid</a> has the same <a href="quuid.html#variant-field">variant field</a> as the <i>other</i> <a href="quuid.html">QUuid</a> and is lexicographically <i>after</i> the <i>other</i> <a href="quuid.html">QUuid</a>. If the <i>other</i> <a href="quuid.html">QUuid</a> has a different variant field, the return value is determined by comparing the two <a href="quuid.html#Variant-enum">variants</a>.</p>
<p><b>See also </b><a href="quuid.html#variant">variant</a>().</p>
<!-- @@@operator> -->
</div>
<div class="relnonmem">
<h2>Related Non-Members</h2>
<!-- $$$qHash[overload1]$$$qHashconstQUuid&uint -->
<h3 class="fn" id="qHash"><a name="qHash"></a><span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> <span class="name">qHash</span>(const <span class="type"><a href="quuid.html#QUuid">QUuid</a></span> &amp;<i>uuid</i>, <span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> <i>seed</i> = 0)</h3>
<p>Returns a hash of the UUID <i>uuid</i>, using <i>seed</i> to seed the calculation.</p>
<p>This function was introduced in  Qt 5.0.</p>
<!-- @@@qHash -->
<!-- $$$operator<<[overload1]$$$operator<<QDataStream&constQUuid& -->
<h3 class="fn" id="operator-lt-lt"><a name="operator-lt-lt"></a><span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp;<span class="name">operator&lt;&lt;</span>(<span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp;<i>s</i>, const <span class="type"><a href="quuid.html#QUuid">QUuid</a></span> &amp;<i>id</i>)</h3>
<p>Writes the UUID <i>id</i> to the data stream <i>s</i>.</p>
<!-- @@@operator<< -->
<!-- $$$operator<<$$$operator<<QDebugconstQUuid& -->
<h3 class="fn" id="operator-lt-lt-1"><a name="operator-lt-lt-1"></a><span class="type"><a href="qdebug.html">QDebug</a></span> <span class="name">operator&lt;&lt;</span>(<span class="type"><a href="qdebug.html">QDebug</a></span> <i>dbg</i>, const <span class="type"><a href="quuid.html#QUuid">QUuid</a></span> &amp;<i>id</i>)</h3>
<p>Writes the UUID <i>id</i> to the output stream for debugging information <i>dbg</i>.</p>
<!-- @@@operator<< -->
<!-- $$$operator<=[overload1]$$$operator<=constQUuid&constQUuid& -->
<h3 class="fn" id="operator-lt-eq"><a name="operator-lt-eq"></a><span class="type">bool</span> <span class="name">operator&lt;=</span>(const <span class="type"><a href="quuid.html#QUuid">QUuid</a></span> &amp;<i>lhs</i>, const <span class="type"><a href="quuid.html#QUuid">QUuid</a></span> &amp;<i>rhs</i>)</h3>
<p>Returns <code>true</code> if <i>lhs</i> has the same <a href="quuid.html#variant-field">variant field</a> as <i>rhs</i> and is lexicographically <i>not after</i> <i>rhs</i>. If <i>rhs</i> has a different variant field, the return value is determined by comparing the two <a href="quuid.html#Variant-enum">variants</a>.</p>
<p>This function was introduced in  Qt 5.5.</p>
<p><b>See also </b><a href="quuid.html#variant">variant</a>().</p>
<!-- @@@operator<= -->
<!-- $$$operator>=[overload1]$$$operator>=constQUuid&constQUuid& -->
<h3 class="fn" id="operator-gt-eq"><a name="operator-gt-eq"></a><span class="type">bool</span> <span class="name">operator&gt;=</span>(const <span class="type"><a href="quuid.html#QUuid">QUuid</a></span> &amp;<i>lhs</i>, const <span class="type"><a href="quuid.html#QUuid">QUuid</a></span> &amp;<i>rhs</i>)</h3>
<p>Returns <code>true</code> if <i>lhs</i> has the same <a href="quuid.html#variant-field">variant field</a> as <i>rhs</i> and is lexicographically <i>not before</i> <i>rhs</i>. If <i>rhs</i> has a different variant field, the return value is determined by comparing the two <a href="quuid.html#Variant-enum">variants</a>.</p>
<p>This function was introduced in  Qt 5.5.</p>
<p><b>See also </b><a href="quuid.html#variant">variant</a>().</p>
<!-- @@@operator>= -->
<!-- $$$operator>>[overload1]$$$operator>>QDataStream&QUuid& -->
<h3 class="fn" id="operator-gt-gt"><a name="operator-gt-gt"></a><span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp;<span class="name">operator&gt;&gt;</span>(<span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp;<i>s</i>, <span class="type"><a href="quuid.html#QUuid">QUuid</a></span> &amp;<i>id</i>)</h3>
<p>Reads a UUID from the stream <i>s</i> into <i>id</i>.</p>
<!-- @@@operator>> -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2017 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>