Sophie

Sophie

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

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" />
<!-- qtcore-index.qdoc -->
  <title>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 >Qt Core</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.12.6 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="#core-functionalities">Core Functionalities</a></li>
<li class="level1"><a href="#using-the-module">Using the Module</a></li>
<li class="level2"><a href="#building-with-cmake">Building with CMake</a></li>
<li class="level2"><a href="#building-with-qmake">Building with qmake</a></li>
<li class="level1"><a href="#threading-and-concurrent-programming">Threading and Concurrent Programming</a></li>
<li class="level1"><a href="#input-output-resources-and-containers">Input/Output, Resources, and Containers</a></li>
<li class="level1"><a href="#additional-frameworks">Additional Frameworks</a></li>
<li class="level1"><a href="#licenses-and-attributions">Licenses and Attributions</a></li>
<li class="level1"><a href="#reference">Reference</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Qt Core</h1>
<span class="subtitle"></span>
<!-- $$$qtcore-index.html-description -->
<div class="descr"> <a name="details"></a>
<a name="core-functionalities"></a>
<h2 id="core-functionalities">Core Functionalities</h2>
<p>Qt Core adds these features to C++:</p>
<ul>
<li>a very powerful mechanism for seamless object communication called signals and slots</li>
<li>queryable and designable object properties</li>
<li>hierarchical and queryable object trees that organize</li>
<li>object ownership in a natural way with guarded pointers (<a href="qpointer.html">QPointer</a>)</li>
<li>a dynamic cast that works across library boundaries</li>
</ul>
<p>The following pages provide more information about Qt's core features:</p>
<ul>
<li><a href="metaobjects.html">The Meta-Object System</a></li>
<li><a href="properties.html">The Property System</a></li>
<li><a href="object.html">Object Model</a></li>
<li><a href="objecttrees.html">Object Trees &amp; Ownership</a></li>
<li><a href="signalsandslots.html">Signals &amp; Slots</a></li>
</ul>
<a name="using-the-module"></a>
<h2 id="using-the-module">Using the Module</h2>
<p>Using a Qt module requires linking against the module library, either directly or through other dependencies. Several build tools have dedicated support for this, including CMake and <a href="../qmake/qmake-manual.html">qmake</a>.</p>
<a name="building-with-cmake"></a>
<h3 id="building-with-cmake">Building with CMake</h3>
<p>Use the <code>find_package()</code> command to locate the needed module components in the <code>Qt5</code> package:</p>
<pre class="cpp">

  find_package(Qt5 COMPONENTS Core REQUIRED)
  target_link_libraries(mytarget Qt5::Core)

</pre>
<p>See also the <a href="qtcore-index.html#building-with-cmake">Building with CMake</a> overview.</p>
<a name="building-with-qmake"></a>
<h3 id="building-with-qmake">Building with qmake</h3>
<p>If you use <a href="../qmake/qmake-manual.html">qmake</a> to build your projects, Qt5Core is linked by default.</p>
<a name="threading-and-concurrent-programming"></a>
<h2 id="threading-and-concurrent-programming">Threading and Concurrent Programming</h2>
<p>Qt provides thread support in the form of platform-independent threading classes, a thread-safe way of posting events, and signal-slot connections across threads. Multithreaded programming is also a useful paradigm for performing time-consuming operations without freezing the user interface of an application.</p>
<p>The Thread Support in Qt page contains information on implementing threads in applications. Additional concurrent classes are provided by the <a href="../qtconcurrent/qtconcurrent-index.html">Qt Concurrent</a> module.</p>
<a name="input-output-resources-and-containers"></a>
<h2 id="input-output-resources-and-containers">Input/Output, Resources, and Containers</h2>
<p>Qt provides a resource system for organizing application files and assets, a set of containers, and classes for receiving input and printing output.</p>
<ul>
<li><a href="containers.html">Container Classes</a></li>
<li><a href="datastreamformat.html">Serializing Qt Data Types</a></li>
<li><a href="implicit-sharing.html">Implicit Sharing</a></li>
</ul>
<p>In addition, Qt Core provides a platform-independent mechanism for storing binary files in the application's executable.</p>
<ul>
<li><a href="resources.html">The Qt Resource System</a></li>
</ul>
<a name="additional-frameworks"></a>
<h2 id="additional-frameworks">Additional Frameworks</h2>
<p>Qt Core also provides some of Qt's key frameworks.</p>
<ul>
<li><a href="animation-overview.html">The Animation Framework</a></li>
<li><a href="json.html">JSON Support in Qt</a></li>
<li><a href="statemachine-api.html">The State Machine Framework</a></li>
<li>How to Create Qt Plugins</li>
<li><a href="eventsandfilters.html">The Event System</a></li>
</ul>
<a name="licenses-and-attributions"></a>
<h2 id="licenses-and-attributions">Licenses and Attributions</h2>
<p>Qt Core is available under commercial licenses from The Qt Company. In addition, it is available under free software licenses. Since Qt 5.4, these free software licenses are GNU Lesser General Public License, version 3, or the GNU General Public License, version 2. See Qt Licensing for further details.</p>
<p>Executables on Windows potentially link against The qtmain Library. This library is available under commercial licenses and also under the BSD 3-clause &quot;New&quot; or &quot;Revised&quot; License.</p>
<p>Furthermore, Qt Core in Qt 5.12.6 may contain third party modules under following permissive licenses:</p>
<div class="table"><table class="annotated">
<tr class="odd topAlign"><td class="tblName"><p><a href="qtcore-attribution-zlib.html">Data Compression Library (zlib), version 1.2&#x2e;11</a></p></td><td class="tblDescr"><p>zlib License</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtcore-attribution-easing.html">Easing Equations by Robert Penner</a></p></td><td class="tblDescr"><p>BSD 3-clause &quot;New&quot; or &quot;Revised&quot; License</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtcore-attribution-doubleconversion.html">Efficient Binary-Decimal and Decimal-Binary Conversion Routines for IEEE Doubles, version 3.1&#x2e;1</a></p></td><td class="tblDescr"><p>BSD 3-clause &quot;New&quot; or &quot;Revised&quot; License</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtcore-attribution-freebsd.html">FreeBSD strtoll and strtoull, version 18b29f3fb8abee5d57ed8f4a44f806bec7e0eeff</a></p></td><td class="tblDescr"><p>BSD 3-clause &quot;New&quot; or &quot;Revised&quot; License</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtcore-attribution-md4.html">MD4</a></p></td><td class="tblDescr"><p>Public Domain</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtcore-attribution-md5.html">MD5</a></p></td><td class="tblDescr"><p>Public Domain</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtcore-attribution-pcre2-sljit.html">PCRE2 - Stack-less Just-In-Time Compiler, version 10.33</a></p></td><td class="tblDescr"><p>BSD 2-clause &quot;Simplified&quot; License</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtcore-attribution-pcre2.html">PCRE2, version 10.33</a></p></td><td class="tblDescr"><p>BSD 3-clause &quot;New&quot; or &quot;Revised&quot; License</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtcore-attribution-qeventdispatcher-cf.html">QEventDispatcher on macOS</a></p></td><td class="tblDescr"><p>BSD 3-clause &quot;New&quot; or &quot;Revised&quot; License</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtcore-attribution-sha1.html">Secure Hash Algorithm SHA-1</a></p></td><td class="tblDescr"><p>Public Domain</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtcore-attribution-sha3-keccak.html">Secure Hash Algorithm SHA-3 - Keccak, version 3.2</a></p></td><td class="tblDescr"><p>Creative Commons Zero v1.0 Universal</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtcore-attribution-sha3-endian.html">Secure Hash Algorithm SHA-3 - brg_endian, version https://github.com/BrianGladman/sha/ commit 4b9e13ead2c5b5e41ca27c65de4dd69ae0bac228</a></p></td><td class="tblDescr"><p>BSD 2-clause &quot;Simplified&quot; License</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtcore-attribution-rfc6234.html">Secure Hash Algorithms SHA-384 and SHA-512</a></p></td><td class="tblDescr"><p>BSD 3-clause &quot;New&quot; or &quot;Revised&quot; License</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtcore-attribution-qeucjpcodec.html">Text Codec: EUC-JP</a></p></td><td class="tblDescr"><p>BSD 2-clause &quot;Simplified&quot; License</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtcore-attribution-qeuckrcodec.html">Text Codec: EUC-KR</a></p></td><td class="tblDescr"><p>BSD 2-clause &quot;Simplified&quot; License</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtcore-attribution-qbkcodec.html">Text Codec: GBK</a></p></td><td class="tblDescr"><p>BSD 2-clause &quot;Simplified&quot; License</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtcore-attribution-qjiscodec.html">Text Codec: ISO 2022-JP (JIS)</a></p></td><td class="tblDescr"><p>BSD 2-clause &quot;Simplified&quot; License</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtcore-attribution-qsjiscodec.html">Text Codec: Shift-JIS</a></p></td><td class="tblDescr"><p>BSD 2-clause &quot;Simplified&quot; License</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtcore-attribution-qtsciicodec.html">Text Codec: TSCII</a></p></td><td class="tblDescr"><p>BSD 2-clause &quot;Simplified&quot; License</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtcore-attribution-qbig5codecs.html">Text Codecs: Big5, Big5-HKSCS</a></p></td><td class="tblDescr"><p>BSD 2-clause &quot;Simplified&quot; License</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtcore-attribution-psl.html">The Public Suffix List, version Generated on 2018-01-04</a></p></td><td class="tblDescr"><p>Mozilla Public License 2.0</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtcore-attribution-tinycbor.html">TinyCBOR, version 0.6+patches</a></p></td><td class="tblDescr"><p>MIT License</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtcore-attribution-unicode-character-database.html">Unicode Character Database (UCD), version 20</a></p></td><td class="tblDescr"><p>Unicode License Agreement - Data Files and Software (2016)</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtcore-attribution-unicode-cldr.html">Unicode Common Locale Data Repository (CLDR), version v35.1</a></p></td><td class="tblDescr"><p>Unicode License Agreement - Data Files and Software (2016)</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtcore-attribution-forkfd.html">forkfd</a></p></td><td class="tblDescr"><p>MIT License</p></td></tr>
</table></div>
<a name="reference"></a>
<h2 id="reference">Reference</h2>
<p>These are links to the API reference materials.</p>
<ul>
<li><a href="qtcore-module.html">C++ Classes</a><ul>
<li><a href="animation.html">Animation Classes</a></li>
<li>Threading Classes</li>
<li><a href="containers.html">Container Classes</a></li>
<li><a href="plugins.html">Plugin Classes</a></li>
<li><a href="implicit-sharing.html#implicitly-shared-classes">Implicitly Shared Classes</a></li>
<li><a href="statemachine.html">State Machine Classes</a></li>
<li><a href="io.html">Input/Output Classes</a></li>
<li><a href="events.html">Event Classes</a></li>
</ul>
</li>
</ul>
</div>
<!-- @@@qtcore-index.html -->
        </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>