ActiveQt 示例和教程

本页列出了 ActiveQt 示例和教程:

COM App Example (ActiveQt)

COM App 示例展示了如何使用 ActiveQt 开发可通过 COM 自动运行的 Qt 应用程序。不同的基于 QObject 的类被暴露为 COM 对象,与运行中的 Qt GUI 应用程序进行通信。这些 COM 对象的 API 设计与标准 COM 应用程序(即 Microsoft Office 中的应用程序)的 API 相似。

Qutlook Example (ActiveQt)

Qutlook 示例演示了如何使用 ActiveQt 自动运行 Outlook。该示例使用 dumpcpp 工具为描述 Outlook 对象模型的类型库生成 C++ 命名空间。

Simple Example (ActiveQt)

简单示例演示了 QAxBindable 和 QAxFactory 的使用。

Wrapper Example (ActiveQt)

Wrapper 示例演示了如何将现有 QWidget 类导出为 ActiveX 控件,以及如何使用 QAxFactory 和 QAXFACTORY_EXPORT() 宏。本例中的 ActiveX 控件是 Qt 提供的标准按钮类 QPushButton、QCheckBox 和 QRadioButton。

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.