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 许可 进一步了解细节。