ActiveQt 示例与教程
本页面列出了 ActiveQt 的示例和教程:
“COM 应用程序”示例演示了如何使用 ActiveQt 开发一个可通过 COM 实现自动化的 Qt 应用程序。各种基于 QObject 的类被作为 COM 对象对外暴露,并与正在运行的 Qt 应用程序的 GUI 进行通信。这些 COM 对象的 API 设计上与标准 COM 应用程序(例如 Microsoft Office)的 API 相似。 | |
Qutlook示例演示了如何使用ActiveQt对Outlook进行自动化操作。该示例利用dumpcpp工具,为描述Outlook对象模型的类型库生成一个C++命名空间。 | |
“Simple”示例演示了如何使用 QAxBindable 和 QAxFactory。 | |
Wrapper示例演示了如何将现有的QWidget类导出为ActiveX控件,以及如何将QAxFactory与QAXFACTORY_EXPORT()宏结合使用。本示例中的ActiveX控件是Qt提供的标准按钮类:QPushButton、QCheckBox和QRadioButton。 |
© 2026 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.