All other Qt modules rely on this module. To include the definitions of the module's classes, use the following directive:
#include <QtCore>
If you use qmake to build your projects, Qt Core is included by default.
Qt adds these features to C++:
The following pages provide more information about Qt's core features:
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.
The Thread Support in Qt page contains information on implementing threads in applications. Additional concurrent classes are provided by the Qt Concurrent module.
Qt provides a resource system for organizing application files and assets, a set of containers, and classes for receiving input and printing output.
In addition, Qt Core provides a platform-independent mechanism for storing binary files in the application's executable.
Qt Core also provides some of Qt's key frameworks.
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.
Executables on Windows potentially link against The qtmain Library. This library is available under commercial licenses and also under the BSD 3-clause "New" or "Revised" License.
Furthermore, Qt Core in Qt 5.11.2 may contain third party modules under following permissive licenses:
ZLib license |
|
BSD 3-clause "New" or "Revised" License |
|
Efficient Binary-Decimal and Decimal-Binary Conversion Routines for IEEE Doubles |
BSD 3-clause "New" or "Revised" License |
BSD 3-clause "New" or "Revised" License |
|
Public Domain |
|
Public Domain |
|
BSD 3-clause "New" or "Revised" License |
|
BSD 3-clause "New" or "Revised" License |
|
Public Domain |
|
Creative Commons Zero v1.0 Universal |
|
BSD 3-clause "New" or "Revised" License |
|
BSD 3-clause "New" or "Revised" License |
|
BSD 2-clause "Simplified" License |
|
BSD 2-clause "Simplified" License |
|
BSD 2-clause "Simplified" License |
|
BSD 2-clause "Simplified" License |
|
BSD 2-clause "Simplified" License |
|
BSD 2-clause "Simplified" License |
|
BSD 2-clause "Simplified" License |
|
Mozilla Public License 2.0 |
|
Unicode License Agreement - Data Files and Software (2016) |
|
Unicode License Agreement - Data Files and Software (2016) |
|
MIT License |
These are links to the API reference materials.