Sophie

Sophie

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

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" />
<!-- qglobal.cpp -->
  <title>QSysInfo 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 >QSysInfo</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-types">Public Types</a></li>
<li class="level1"><a href="#static-public-members">Static Public 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">QSysInfo Class</h1>
<!-- $$$QSysInfo-brief -->
<p>The <a href="qsysinfo.html">QSysInfo</a> class provides information about the system. <a href="#details">More...</a></p>
<!-- @@@QSysInfo -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QSysInfo&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="qsysinfo-members.html">List of all members, including inherited members</a></li>
<li><a href="qsysinfo-obsolete.html">Obsolete members</a></li>
</ul>
<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="qsysinfo.html#Endian-enum">Endian</a></b> { BigEndian, LittleEndian, ByteOrder }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qsysinfo.html#Sizes-enum">Sizes</a></b> { WordSize }</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"> QByteArray </td><td class="memItemRight bottomAlign"><b><a href="qsysinfo.html#bootUniqueId">bootUniqueId</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qsysinfo.html#buildAbi">buildAbi</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qsysinfo.html#buildCpuArchitecture">buildCpuArchitecture</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qsysinfo.html#currentCpuArchitecture">currentCpuArchitecture</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qsysinfo.html#kernelType">kernelType</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qsysinfo.html#kernelVersion">kernelVersion</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qsysinfo.html#machineHostName">machineHostName</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QByteArray </td><td class="memItemRight bottomAlign"><b><a href="qsysinfo.html#machineUniqueId">machineUniqueId</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qsysinfo.html#prettyProductName">prettyProductName</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qsysinfo.html#productType">productType</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qsysinfo.html#productVersion">productVersion</a></b>()</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QSysInfo-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qsysinfo.html">QSysInfo</a> class provides information about the system.</p>
<ul>
<li><a href="qsysinfo.html#Sizes-enum">WordSize</a> specifies the size of a pointer for the platform on which the application is compiled.</li>
<li><a href="qsysinfo.html#Endian-enum">ByteOrder</a> specifies whether the platform is big-endian or little-endian.</li>
</ul>
<p>Some constants are defined only on certain platforms. You can use the preprocessor symbols <a href="qtglobal.html#Q_OS_WIN">Q_OS_WIN</a> and <a href="qtglobal.html#Q_OS_MACOS">Q_OS_MACOS</a> to test that the application is compiled under Windows or macOS.</p>
</div>
<p><b>See also </b><a href="qlibraryinfo.html">QLibraryInfo</a>.</p>
<!-- @@@QSysInfo -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$Endian$$$BigEndian$$$LittleEndian$$$ByteOrder -->
<h3 class="fn" id="Endian-enum"><a name="Endian-enum"></a>enum QSysInfo::<span class="name">Endian</span></h3>
<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>QSysInfo::BigEndian</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">Big-endian byte order (also called Network byte order)</td></tr>
<tr><td class="topAlign"><code>QSysInfo::LittleEndian</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">Little-endian byte order</td></tr>
<tr><td class="topAlign"><code>QSysInfo::ByteOrder</code></td><td class="topAlign tblval"><code>BigEndian or LittleEndian</code></td><td class="topAlign">Equals BigEndian or LittleEndian, depending on the platform's byte order.</td></tr>
</table></div>
<!-- @@@Endian -->
<!-- $$$Sizes$$$WordSize -->
<h3 class="fn" id="Sizes-enum"><a name="Sizes-enum"></a>enum QSysInfo::<span class="name">Sizes</span></h3>
<p>This enum provides platform-specific information about the sizes of data structures used by the underlying architecture.</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>QSysInfo::WordSize</code></td><td class="topAlign tblval"><code>(sizeof(void *)&lt;&lt;3)</code></td><td class="topAlign">The size in bits of a pointer for the platform on which the application is compiled (32 or 64).</td></tr>
</table></div>
<!-- @@@Sizes -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$bootUniqueId[overload1]$$$bootUniqueId -->
<h3 class="fn" id="bootUniqueId"><a name="bootUniqueId"></a><code>[static] </code><span class="type"><a href="qbytearray.html">QByteArray</a></span> QSysInfo::<span class="name">bootUniqueId</span>()</h3>
<p>Returns a unique ID for this machine's boot, if one can be determined. If no unique ID could be determined, this function returns an empty byte array. This value is expected to change after every boot and can be considered globally unique.</p>
<p>This function is currently only implemented for Linux and Apple operating systems.</p>
<p>This function was introduced in  Qt 5.11.</p>
<p><b>See also </b><a href="qsysinfo.html#machineUniqueId">machineUniqueId</a>().</p>
<!-- @@@bootUniqueId -->
<!-- $$$buildAbi[overload1]$$$buildAbi -->
<h3 class="fn" id="buildAbi"><a name="buildAbi"></a><code>[static] </code><span class="type"><a href="qstring.html">QString</a></span> QSysInfo::<span class="name">buildAbi</span>()</h3>
<p>Returns the full architecture string that Qt was compiled for. This string is useful for identifying different, incompatible builds. For example, it can be used as an identifier to request an upgrade package from a server.</p>
<p>The values returned from this function are kept stable as follows: the mandatory components of the result will not change in future versions of Qt, but optional suffixes may be added.</p>
<p>The returned value is composed of three or more parts, separated by dashes (&quot;-&quot;). They are:</p>
<div class="table"><table class="generic">
 <thead><tr class="qt-style"><th >Component</th><th >Value</th></tr></thead>
<tr valign="top" class="odd"><td >CPU Architecture</td><td >The same as <a href="qsysinfo.html#buildCpuArchitecture">QSysInfo::buildCpuArchitecture</a>(), such as &quot;arm&quot;, &quot;i386&quot;, &quot;mips&quot; or &quot;x86_64&quot;</td></tr>
<tr valign="top" class="even"><td >Endianness</td><td >&quot;little_endian&quot; or &quot;big_endian&quot;</td></tr>
<tr valign="top" class="odd"><td >Word size</td><td >Whether it's a 32- or 64-bit application. Possible values are: &quot;llp64&quot; (Windows 64-bit), &quot;lp64&quot; (Unix 64-bit), &quot;ilp32&quot; (32-bit)</td></tr>
<tr valign="top" class="even"><td >(Optional) ABI</td><td >Zero or more components identifying different ABIs possible in this architecture. Currently, Qt has optional ABI components for ARM and MIPS processors: one component is the main ABI (such as &quot;eabi&quot;, &quot;o32&quot;, &quot;n32&quot;, &quot;o64&quot;); another is whether the calling convention is using hardware floating point registers (&quot;hardfloat&quot; is present).<p>Additionally, if Qt was configured with <code>-qreal float</code>, the ABI option tag &quot;qreal_float&quot; will be present. If Qt was configured with another type as qreal, that type is present after &quot;qreal_&quot;, with all characters other than letters and digits escaped by an underscore, followed by two hex digits. For example, <code>-qreal long double</code> becomes &quot;qreal_long_20double&quot;.</p>
</td></tr>
</table></div>
<p>This function was introduced in  Qt 5.4.</p>
<p><b>See also </b><a href="qsysinfo.html#buildCpuArchitecture">QSysInfo::buildCpuArchitecture</a>().</p>
<!-- @@@buildAbi -->
<!-- $$$buildCpuArchitecture[overload1]$$$buildCpuArchitecture -->
<h3 class="fn" id="buildCpuArchitecture"><a name="buildCpuArchitecture"></a><code>[static] </code><span class="type"><a href="qstring.html">QString</a></span> QSysInfo::<span class="name">buildCpuArchitecture</span>()</h3>
<p>Returns the architecture of the CPU that Qt was compiled for, in text format. Note that this may not match the actual CPU that the application is running on if there's an emulation layer or if the CPU supports multiple architectures (like x86-64 processors supporting i386 applications). To detect that, use <a href="qsysinfo.html#currentCpuArchitecture">currentCpuArchitecture</a>().</p>
<p>Values returned by this function are stable and will not change over time, so applications can rely on the returned value as an identifier, except that new CPU types may be added over time.</p>
<p>Typical returned values are (note: list not exhaustive):</p>
<ul>
<li>&quot;arm&quot;</li>
<li>&quot;arm64&quot;</li>
<li>&quot;i386&quot;</li>
<li>&quot;ia64&quot;</li>
<li>&quot;mips&quot;</li>
<li>&quot;mips64&quot;</li>
<li>&quot;power&quot;</li>
<li>&quot;power64&quot;</li>
<li>&quot;sparc&quot;</li>
<li>&quot;sparcv9&quot;</li>
<li>&quot;x86_64&quot;</li>
</ul>
<p>This function was introduced in  Qt 5.4.</p>
<p><b>See also </b><a href="qsysinfo.html#buildAbi">QSysInfo::buildAbi</a>() and <a href="qsysinfo.html#currentCpuArchitecture">QSysInfo::currentCpuArchitecture</a>().</p>
<!-- @@@buildCpuArchitecture -->
<!-- $$$currentCpuArchitecture[overload1]$$$currentCpuArchitecture -->
<h3 class="fn" id="currentCpuArchitecture"><a name="currentCpuArchitecture"></a><code>[static] </code><span class="type"><a href="qstring.html">QString</a></span> QSysInfo::<span class="name">currentCpuArchitecture</span>()</h3>
<p>Returns the architecture of the CPU that the application is running on, in text format. Note that this function depends on what the OS will report and may not detect the actual CPU architecture if the OS hides that information or is unable to provide it. For example, a 32-bit OS running on a 64-bit CPU is usually unable to determine the CPU is actually capable of running 64-bit programs.</p>
<p>Values returned by this function are mostly stable: an attempt will be made to ensure that they stay constant over time and match the values returned by QSysInfo::builldCpuArchitecture(). However, due to the nature of the operating system functions being used, there may be discrepancies.</p>
<p>Typical returned values are (note: list not exhaustive):</p>
<ul>
<li>&quot;arm&quot;</li>
<li>&quot;arm64&quot;</li>
<li>&quot;i386&quot;</li>
<li>&quot;ia64&quot;</li>
<li>&quot;mips&quot;</li>
<li>&quot;mips64&quot;</li>
<li>&quot;power&quot;</li>
<li>&quot;power64&quot;</li>
<li>&quot;sparc&quot;</li>
<li>&quot;sparcv9&quot;</li>
<li>&quot;x86_64&quot;</li>
</ul>
<p>This function was introduced in  Qt 5.4.</p>
<p><b>See also </b><a href="qsysinfo.html#buildAbi">QSysInfo::buildAbi</a>() and <a href="qsysinfo.html#buildCpuArchitecture">QSysInfo::buildCpuArchitecture</a>().</p>
<!-- @@@currentCpuArchitecture -->
<!-- $$$kernelType[overload1]$$$kernelType -->
<h3 class="fn" id="kernelType"><a name="kernelType"></a><code>[static] </code><span class="type"><a href="qstring.html">QString</a></span> QSysInfo::<span class="name">kernelType</span>()</h3>
<p>Returns the type of the operating system kernel Qt was compiled for. It's also the kernel the application is running on, unless the host operating system is running a form of compatibility or virtualization layer.</p>
<p>Values returned by this function are stable and will not change over time, so applications can rely on the returned value as an identifier, except that new OS kernel types may be added over time.</p>
<p>On Windows, this function returns the type of Windows kernel, like &quot;winnt&quot;. On Unix systems, it returns the same as the output of <code>uname -s</code> (lowercased).</p>
<p><b>Note: </b>This function may return surprising values: it returns &quot;linux&quot; for all operating systems running Linux (including Android), &quot;qnx&quot; for all operating systems running QNX, &quot;freebsd&quot; for Debian/kFreeBSD, and &quot;darwin&quot; for macOS and iOS. For information on the type of product the application is running on, see <a href="qsysinfo.html#productType">productType</a>().</p><p>This function was introduced in  Qt 5.4.</p>
<p><b>See also </b><a href="qfileselector.html">QFileSelector</a>, <a href="qsysinfo.html#kernelVersion">kernelVersion</a>(), <a href="qsysinfo.html#productType">productType</a>(), <a href="qsysinfo.html#productVersion">productVersion</a>(), and <a href="qsysinfo.html#prettyProductName">prettyProductName</a>().</p>
<!-- @@@kernelType -->
<!-- $$$kernelVersion[overload1]$$$kernelVersion -->
<h3 class="fn" id="kernelVersion"><a name="kernelVersion"></a><code>[static] </code><span class="type"><a href="qstring.html">QString</a></span> QSysInfo::<span class="name">kernelVersion</span>()</h3>
<p>Returns the release version of the operating system kernel. On Windows, it returns the version of the NT kernel. On Unix systems, including Android and macOS, it returns the same as the <code>uname -r</code> command would return.</p>
<p>If the version could not be determined, this function may return an empty string.</p>
<p>This function was introduced in  Qt 5.4.</p>
<p><b>See also </b><a href="qsysinfo.html#kernelType">kernelType</a>(), <a href="qsysinfo.html#productType">productType</a>(), <a href="qsysinfo.html#productVersion">productVersion</a>(), and <a href="qsysinfo.html#prettyProductName">prettyProductName</a>().</p>
<!-- @@@kernelVersion -->
<!-- $$$machineHostName[overload1]$$$machineHostName -->
<h3 class="fn" id="machineHostName"><a name="machineHostName"></a><code>[static] </code><span class="type"><a href="qstring.html">QString</a></span> QSysInfo::<span class="name">machineHostName</span>()</h3>
<p>Returns this machine's host name, if one is configured. Note that hostnames are not guaranteed to be globally unique, especially if they were configured automatically.</p>
<p>This function does not guarantee the returned host name is a Fully Qualified Domain Name (FQDN). For that, use <a href="../qtnetwork/qhostinfo.html">QHostInfo</a> to resolve the returned name to an FQDN.</p>
<p>This function returns the same as <a href="../qtnetwork/qhostinfo.html#localHostName">QHostInfo::localHostName</a>().</p>
<p>This function was introduced in  Qt 5.6.</p>
<p><b>See also </b><a href="../qtnetwork/qhostinfo.html#localDomainName">QHostInfo::localDomainName</a> and <a href="qsysinfo.html#machineUniqueId">machineUniqueId</a>().</p>
<!-- @@@machineHostName -->
<!-- $$$machineUniqueId[overload1]$$$machineUniqueId -->
<h3 class="fn" id="machineUniqueId"><a name="machineUniqueId"></a><code>[static] </code><span class="type"><a href="qbytearray.html">QByteArray</a></span> QSysInfo::<span class="name">machineUniqueId</span>()</h3>
<p>Returns a unique ID for this machine, if one can be determined. If no unique ID could be determined, this function returns an empty byte array. Unlike <a href="qsysinfo.html#machineHostName">machineHostName</a>(), the value returned by this function is likely globally unique.</p>
<p>A unique ID is useful in network operations to identify this machine for an extended period of time, when the IP address could change or if this machine could have more than one IP address. For example, the ID could be used when communicating with a server or when storing device-specific data in shared network storage.</p>
<p>Note that on some systems, this value will persist across reboots and on some it will not. Applications should not blindly depend on this fact without verifying the OS capabilities. In particular, on Linux systems, this ID is usually permanent and it matches the D-Bus machine ID, except for nodes without their own storage (replicated nodes).</p>
<p>This function was introduced in  Qt 5.11.</p>
<p><b>See also </b><a href="qsysinfo.html#machineHostName">machineHostName</a>() and <a href="qsysinfo.html#bootUniqueId">bootUniqueId</a>().</p>
<!-- @@@machineUniqueId -->
<!-- $$$prettyProductName[overload1]$$$prettyProductName -->
<h3 class="fn" id="prettyProductName"><a name="prettyProductName"></a><code>[static] </code><span class="type"><a href="qstring.html">QString</a></span> QSysInfo::<span class="name">prettyProductName</span>()</h3>
<p>Returns a prettier form of <a href="qsysinfo.html#productType">productType</a>() and <a href="qsysinfo.html#productVersion">productVersion</a>(), containing other tokens like the operating system type, codenames and other information. The result of this function is suitable for displaying to the user, but not for long-term storage, as the string may change with updates to Qt.</p>
<p>If <a href="qsysinfo.html#productType">productType</a>() is &quot;unknown&quot;, this function will instead use the <a href="qsysinfo.html#kernelType">kernelType</a>() and <a href="qsysinfo.html#kernelVersion">kernelVersion</a>() functions.</p>
<p>This function was introduced in  Qt 5.4.</p>
<p><b>See also </b><a href="qsysinfo.html#kernelType">kernelType</a>(), <a href="qsysinfo.html#kernelVersion">kernelVersion</a>(), <a href="qsysinfo.html#productType">productType</a>(), and <a href="qsysinfo.html#productVersion">productVersion</a>().</p>
<!-- @@@prettyProductName -->
<!-- $$$productType[overload1]$$$productType -->
<h3 class="fn" id="productType"><a name="productType"></a><code>[static] </code><span class="type"><a href="qstring.html">QString</a></span> QSysInfo::<span class="name">productType</span>()</h3>
<p>Returns the product name of the operating system this application is running in. If the application is running on some sort of emulation or virtualization layer (such as WINE on a Unix system), this function will inspect the emulation / virtualization layer.</p>
<p>Values returned by this function are stable and will not change over time, so applications can rely on the returned value as an identifier, except that new OS types may be added over time.</p>
<p><b>Linux and Android note</b>: this function returns &quot;android&quot; for Linux systems running Android userspace, notably when using the Bionic library. For all other Linux systems, regardless of C library being used, it tries to determine the distribution name and returns that. If determining the distribution name failed, it returns &quot;unknown&quot;.</p>
<p><b>macOS note</b>: this function returns &quot;osx&quot; for all macOS systems, regardless of Apple naming convention. The returned string will be updated for Qt 6. Note that this function erroneously returned &quot;macos&quot; for macOS 10.12 in Qt versions 5.6&#x2e;2, 5.7&#x2e;1, and 5.8&#x2e;0&#x2e;</p>
<p><b>Darwin, iOS, tvOS, and watchOS note</b>: this function returns &quot;ios&quot; for iOS systems, &quot;tvos&quot; for tvOS systems, &quot;watchos&quot; for watchOS systems, and &quot;darwin&quot; in case the system could not be determined.</p>
<p><b><a href="qtcore-attribution-freebsd.html#freebsd">FreeBSD</a> note</b>: this function returns &quot;debian&quot; for Debian/kFreeBSD and &quot;unknown&quot; otherwise.</p>
<p><b>Windows note</b>: this function &quot;winrt&quot; for WinRT builds, and &quot;windows&quot; for normal desktop builds.</p>
<p>For other Unix-type systems, this function usually returns &quot;unknown&quot;.</p>
<p>This function was introduced in  Qt 5.4.</p>
<p><b>See also </b><a href="qfileselector.html">QFileSelector</a>, <a href="qsysinfo.html#kernelType">kernelType</a>(), <a href="qsysinfo.html#kernelVersion">kernelVersion</a>(), <a href="qsysinfo.html#productVersion">productVersion</a>(), and <a href="qsysinfo.html#prettyProductName">prettyProductName</a>().</p>
<!-- @@@productType -->
<!-- $$$productVersion[overload1]$$$productVersion -->
<h3 class="fn" id="productVersion"><a name="productVersion"></a><code>[static] </code><span class="type"><a href="qstring.html">QString</a></span> QSysInfo::<span class="name">productVersion</span>()</h3>
<p>Returns the product version of the operating system in string form. If the version could not be determined, this function returns &quot;unknown&quot;.</p>
<p>It will return the Android, iOS, macOS, Windows full-product versions on those systems.</p>
<p>Typical returned values are (note: list not exhaustive):</p>
<ul>
<li>&quot;2016.09&quot; (Amazon Linux AMI 2016.09)</li>
<li>&quot;7.1&quot; (Android Nougat)</li>
<li>&quot;25&quot; (Fedora 25)</li>
<li>&quot;10.1&quot; (iOS 10.1)</li>
<li>&quot;10.12&quot; (macOS Sierra)</li>
<li>&quot;10.0&quot; (tvOS 10)</li>
<li>&quot;16.10&quot; (Ubuntu 16.10)</li>
<li>&quot;3.1&quot; (watchOS 3.1)</li>
<li>&quot;7 SP 1&quot; (Windows 7 Service Pack 1)</li>
<li>&quot;8.1&quot; (Windows 8.1)</li>
<li>&quot;10&quot; (Windows 10)</li>
<li>&quot;Server 2016&quot; (Windows Server 2016)</li>
</ul>
<p>On Linux systems, it will try to determine the distribution version and will return that. This is also done on Debian/kFreeBSD, so this function will return Debian version in that case.</p>
<p>In all other Unix-type systems, this function always returns &quot;unknown&quot;.</p>
<p><b>Note: </b>The version string returned from this function is not guaranteed to be orderable. On Linux, the version of the distribution may jump unexpectedly, please refer to the distribution's documentation for versioning practices.</p><p>This function was introduced in  Qt 5.4.</p>
<p><b>See also </b><a href="qsysinfo.html#kernelType">kernelType</a>(), <a href="qsysinfo.html#kernelVersion">kernelVersion</a>(), <a href="qsysinfo.html#productType">productType</a>(), and <a href="qsysinfo.html#prettyProductName">prettyProductName</a>().</p>
<!-- @@@productVersion -->
</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>