Qt's ActiveX and COM support enables Qt for Windows developers to:
有關 Qt 使用 ActiveX 的更多信息,見 在 Qt 中構建 ActiveX 服務器 .
The ActiveQt framework consists of two modules:
一組 tools 的提供,是為簡化使用 ActiveX 的 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()
命令定位所需模塊組件在
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
variable in the project's .pro file:
QT += axcontainer axserver
The QAxContainer and QAxServer 模塊在商業許可下是可用的來自 Qt 公司 。此外,它們是可用的在 BSD 3 條款新 (或修訂) 許可 :
見 Qt 許可 進一步瞭解細節。