Qt 的 ActiveX 和 COM 支持使 Qt for Windows 開發者能夠:
有關 Qt 使用 ActiveX 的更多信息,見 在 Qt 中構建 ActiveX 服務器 .
ActiveQt 框架由 2 模塊組成:
一組 tools 的提供,是為簡化使用 ActiveX 的 Qt 工程的開發和構建。
使用 Qt 模塊的 C++ API 要求直接 (或透過其它依賴) 鏈接到模塊庫。幾個構建工具對此有專用支持,包括 CMake and qmake .
使用
find_package()
命令定位所需模塊組件在
Qt6
包:
find_package(Qt6 REQUIRED COMPONENTS AxContainer AxServer) target_link_libraries(mytarget PRIVATE Qt6::AxContainer Qt6::AxServer)
更多細節,見 構建采用 CMake 概述。
To configure the modules for building with qmake, add the module as a value of the
QT
變量在工程的 .pro 文件:
QT += axcontainer axserver
The QAxContainer and QAxServer 模塊在商業許可下是可用的來自 Qt 公司 。此外,它們是可用的在 BSD 3 條款新 (或修訂) 許可 .
見 Qt 許可 進一步瞭解細節。