The Qt Core module adds these features to C++:
以下页面提供了关于 Qt 核心特征的更多信息:
Using a Qt module's C++ API requires linking against the module library, either directly or through other dependencies. Several build tools have dedicated support for this, including CMake and qmake .
使用
find_package()
command to locate the needed module component in the
Qt6
包:
find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
更多细节,见 构建采用 CMake 概述。
若使用 qmake to build your projects, Qt Core is linked by default.
Qt 提供线程支持独立于平台形式 线程类 ,跨线程张贴事件和信号/槽连接的 Thread-Safety (线程安全) 方式。多线程编程也是履行耗时操作且不冻结应用程序用户界面的有用范式。
The Qt 中的线程支持 页面包含在应用程序中实现线程的有关信息。额外并发类的提供由 Qt Concurrent 模块。
Qt 提供组织应用程序文件和资产的资源系统、一组容器及接收输入 打印输出的类。
此外,Qt Core 提供在应用程序的可执行文件中存储二进制文件且独立于平台的机制。
Qt Core 还提供了一些 Qt 关键框架。
Qt Core 的变化 lists important changes in the module API and functionality that were made for the Qt 6 series of Qt.
Qt Core 在商业许可下是可用的来自 Qt 公司 . In addition, it is available under free software licenses: The GNU LGPL (次一般公共许可) 第 3 版 ,或 GNU GPL (一般公共许可) 第 2 版 。见 Qt 许可 进一步了解细节。
Windows 可执行文件潜在链接到 The QtEntryPoint Library 。此库可用于商业许可及 BSD 3 条款新 (或修订) 许可 .
Furthermore, Qt Core in Qt 6.5.1 may contain third party modules under the following permissive licenses: