Active Qt

Qt 的 ActiveX 和 COM 支持允許 Qt for Windows 開發者:

  • 在 Qt 應用程序中訪問和使用由任何 ActiveX 服務器提供的 ActiveX 控件和 COM 對象。
  • 使 Qt 應用程序可用作 COM 服務器,采用任意數量 Qt 對象和小部件作為 COM 對象和 ActiveX 控件。

有關 Qt 使用 ActiveX 的更多信息,見 在 Qt 中構建 ActiveX 服務器 .

The ActiveQt 框架由 2 個模塊組成:

一組 tools 的提供,是為簡化使用 ActiveX 的 Qt 工程的開發和構建。

要構建靜態庫,更改為 activeqt 目錄 (通常 QTDIR/src/activeqt ),和運行 qmake 和 make 工具在 container control subdirectory. The qaxcontainer and qaxserver libraries will be linked into QTDIR/lib .

若正在使用 Qt 共享配置,進入 plugin 子目錄和運行 qmake 及 make 工具以構建插件,集成 QAxContainer 模塊到 Qt Designer .

文章和指南

許可和歸屬

The QAxContainer and QAxServer 模塊在商業許可下是可用的來自 Qt 公司 。此外,它們是可用的在 BSD 3 條款新 (或修訂) 許可 :

Copyright (C) 2017 The Qt Company Ltd.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
  * Redistributions of source code must retain the above copyright
    notice, this list of conditions and the following disclaimer.
  * Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in
    the documentation and/or other materials provided with the
    distribution.
  * Neither the name of The Qt Company Ltd nor the names of its
    contributors may be used to endorse or promote products derived
    from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
					

Qt 許可 進一步瞭解細節。

參考

範例