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: