ActiveQtの使用例とチュートリアル
このページでは、ActiveQt のサンプルとチュートリアルを紹介します:
COM App の例では、ActiveQt を使用して COM 経由で自動化できる Qt アプリケーションを開発する方法を紹介します。さまざまなQObjectベースのクラスがCOMオブジェクトとして公開され、実行中のQtアプリケーションのGUIと通信します。これらのCOMオブジェクトのAPIは、Microsoft Officeのような標準的なCOMアプリケーションのAPIに似せて設計されています。 | |
Qutlookの例では、Outlookを自動化するためにActiveQtを使用しています。この例では、Outlookオブジェクト・モデルを記述するタイプ・ライブラリのC++名前空間を生成するためにdumpcppツールを使用しています。 | |
Simpleサンプルでは、QAxBindableとQAxFactoryの使い方を説明しています。 | |
Wrapper]の例では、既存のQWidgetクラスをActiveXコントロールとしてエクスポートする方法や、 QAxFACTORY_EXPORT()マクロとともにQAxFactoryを利用する方法を説明しています。この例での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.